{"openapi":"3.1.0","info":{"title":"AGLA API","version":"0.1.0"},"paths":{"/agla/v1/vocabulary/country":{"get":{"summary":"Country Dic","operationId":"country_dic_agla_v1_vocabulary_country_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/country/{code}":{"get":{"summary":"Country By Code","operationId":"country_by_code_agla_v1_country__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Z]{2}$","title":"Country code","description":"The two-letter code for a country"},"description":"The two-letter code for a country","example":"BW"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Z]{2}$","title":"Country code","description":"The two-letter code for a country"},"description":"The two-letter code for a country","example":"BW"}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/vocabulary/keyphrase":{"get":{"summary":"Keyphrase Dic","operationId":"keyphrase_dic_agla_v1_vocabulary_keyphrase_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeywordResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/summary/{id}":{"get":{"summary":"Summary By Id","operationId":"summary_by_id_agla_v1_summary__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Citation id","description":"The id for a citation"},"description":"The id for a citation","example":"BW1227"},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Citation id","description":"The id for a citation"},"description":"The id for a citation","example":"BW1227"},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/citation/{id}":{"get":{"summary":"Citation By Id","operationId":"citation_by_id_agla_v1_citation__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Citation id","description":"The id for a citation"},"description":"The id for a citation","example":"BW1227"},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CitationResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Citation id","description":"The id for a citation"},"description":"The id for a citation","example":"BW1227"},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/summaries/country/{code}":{"get":{"summary":"Summaries By Country Code","operationId":"summaries_by_country_code_agla_v1_summaries_country__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Z]{2}$","title":"Country code","description":"The two-letter code for a country"},"description":"The two-letter code for a country","example":"BW"},{"name":"onlyLinks","in":"query","required":false,"schema":{"type":"boolean","title":"Links only","description":"Only return those citations with a link to a resource","default":false},"description":"Only return those citations with a link to a resource","example":true},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","title":"Offset","description":"Of the results found offset should be the first returned","default":0},"description":"Of the results found offset should be the first returned","example":0},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","title":"Limit","description":"Maximum number of results to be returned","default":20},"description":"Maximum number of results to be returned","example":10}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Z]{2}$","title":"Country code","description":"The two-letter code for a country"},"description":"The two-letter code for a country","example":"BW"},{"name":"onlyLinks","in":"query","required":false,"schema":{"type":"boolean","title":"Links only","description":"Only return those citations with a link to a resource","default":false},"description":"Only return those citations with a link to a resource","example":true},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","title":"Offset","description":"Of the results found offset should be the first returned","default":0},"description":"Of the results found offset should be the first returned","example":0},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","title":"Limit","description":"Maximum number of results to be returned","default":20},"description":"Maximum number of results to be returned","example":10}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/search/advanced":{"get":{"summary":"Summaries By Advanced Search","operationId":"summaries_by_advanced_search_agla_v1_search_advanced_get","parameters":[{"name":"title","in":"query","required":false,"schema":{"type":"string","minLength":3,"title":"Title","description":"A substring that a citation title should contain"},"description":"A substring that a citation title should contain","example":"water balance model"},{"name":"country","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Country code","description":"A country code relating to a citation"},"description":"A country code relating to a citation","example":"BW"},{"name":"keyword","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"title":"Keyword ID","description":"The ID of a keyword or phrase"},"description":"The ID of a keyword or phrase","example":"2113"},{"name":"report","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Report type code","description":"The code representing a report type"},"description":"The code representing a report type","example":"ART"},{"name":"author","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Author","description":"A substring that a citation author should contain"},"description":"A substring that a citation author should contain","example":"ALEMAW"},{"name":"startYear","in":"query","required":false,"schema":{"type":"integer","maximum":2026,"minimum":1800,"title":"Year","description":"The year after which a citation must be published","default":1800},"description":"The year after which a citation must be published","example":2001},{"name":"endYear","in":"query","required":false,"schema":{"type":"integer","maximum":2026,"minimum":1800,"title":"End year","description":"The year before which a citation must be published","default":2026},"description":"The year before which a citation must be published","example":2005},{"name":"searchLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Overall search logic","description":"A citation should match ANY or ALL of the search queries","default":"ALL"},"description":"A citation should match ANY or ALL of the search queries","example":"ALL"},{"name":"keywordLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Keyword search logic","description":"A citation's keywords should match ANY or ALL of the parameters"},"description":"A citation's keywords should match ANY or ALL of the parameters"},{"name":"countryLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Country search logic","description":"A citation's countries should match ANY or ALL of the parameters"},"description":"A citation's countries should match ANY or ALL of the parameters"},{"name":"authorLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Author search logic","description":"A citation's authors should match ANY or ALL of the parameters"},"description":"A citation's authors should match ANY or ALL of the parameters"},{"name":"titleLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Title search logic","description":"A citation's title should match ANY or ALL of the words"},"description":"A citation's title should match ANY or ALL of the words"},{"name":"onlyLinks","in":"query","required":false,"schema":{"type":"boolean","title":"Links only","description":"Only return those citations with a link to a resource","default":false},"description":"Only return those citations with a link to a resource","example":true},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","title":"Offset","description":"Of the results found offset should be the first returned","default":0},"description":"Of the results found offset should be the first returned","example":0},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","title":"Limit","description":"Maximum number of results to be returned","default":20},"description":"Maximum number of results to be returned","example":10}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}},{"name":"title","in":"query","required":false,"schema":{"type":"string","minLength":3,"title":"Title","description":"A substring that a citation title should contain"},"description":"A substring that a citation title should contain","example":"water balance model"},{"name":"country","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Country code","description":"A country code relating to a citation"},"description":"A country code relating to a citation","example":"BW"},{"name":"keyword","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"title":"Keyword ID","description":"The ID of a keyword or phrase"},"description":"The ID of a keyword or phrase","example":"2113"},{"name":"report","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Report type code","description":"The code representing a report type"},"description":"The code representing a report type","example":"ART"},{"name":"author","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Author","description":"A substring that a citation author should contain"},"description":"A substring that a citation author should contain","example":"ALEMAW"},{"name":"startYear","in":"query","required":false,"schema":{"type":"integer","maximum":2026,"minimum":1800,"title":"Year","description":"The year after which a citation must be published","default":1800},"description":"The year after which a citation must be published","example":2001},{"name":"endYear","in":"query","required":false,"schema":{"type":"integer","maximum":2026,"minimum":1800,"title":"End year","description":"The year before which a citation must be published","default":2026},"description":"The year before which a citation must be published","example":2005},{"name":"searchLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Overall search logic","description":"A citation should match ANY or ALL of the search queries","default":"ALL"},"description":"A citation should match ANY or ALL of the search queries","example":"ALL"},{"name":"keywordLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Keyword search logic","description":"A citation's keywords should match ANY or ALL of the parameters"},"description":"A citation's keywords should match ANY or ALL of the parameters"},{"name":"countryLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Country search logic","description":"A citation's countries should match ANY or ALL of the parameters"},"description":"A citation's countries should match ANY or ALL of the parameters"},{"name":"authorLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Author search logic","description":"A citation's authors should match ANY or ALL of the parameters"},"description":"A citation's authors should match ANY or ALL of the parameters"},{"name":"titleLogic","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLogic","title":"Title search logic","description":"A citation's title should match ANY or ALL of the words"},"description":"A citation's title should match ANY or ALL of the words"},{"name":"onlyLinks","in":"query","required":false,"schema":{"type":"boolean","title":"Links only","description":"Only return those citations with a link to a resource","default":false},"description":"Only return those citations with a link to a resource","example":true},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","title":"Offset","description":"Of the results found offset should be the first returned","default":0},"description":"Of the results found offset should be the first returned","example":0},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","title":"Limit","description":"Maximum number of results to be returned","default":20},"description":"Maximum number of results to be returned","example":10}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/search/phrase":{"get":{"summary":"Summaries By Phrase Search","operationId":"summaries_by_phrase_search_agla_v1_search_phrase_get","parameters":[{"name":"phrase","in":"query","required":true,"schema":{"type":"string","minLength":3,"title":"Phrase","description":"A free text string used for searching"},"description":"A free text string used for searching"},{"name":"country","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Country code","description":"A country code relating to a citation"},"description":"A country code relating to a citation","example":"BW"},{"name":"keyword","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"title":"Keyword ID","description":"The ID of a keyword or phrase"},"description":"The ID of a keyword or phrase","example":"2113"},{"name":"report","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Report type code","description":"The code representing a report type"},"description":"The code representing a report type","example":"ART"},{"name":"author","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Author","description":"A substring that a citation author should contain"},"description":"A substring that a citation author should contain","example":"ALEMAW"},{"name":"startYear","in":"query","required":false,"schema":{"type":"integer","maximum":2026,"minimum":1800,"title":"Year","description":"The year after which a citation must be published","default":1800},"description":"The year after which a citation must be published","example":2001},{"name":"endYear","in":"query","required":false,"schema":{"type":"integer","maximum":2026,"minimum":1800,"title":"End year","description":"The year before which a citation must be published","default":2026},"description":"The year before which a citation must be published","example":2005},{"name":"onlyLinks","in":"query","required":false,"schema":{"type":"boolean","title":"Links only","description":"Only return those citations with a link to a resource","default":false},"description":"Only return those citations with a link to a resource","example":true},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","title":"Offset","description":"Of the results found offset should be the first returned","default":0},"description":"Of the results found offset should be the first returned","example":0},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","title":"Limit","description":"Maximum number of results to be returned","default":20},"description":"Maximum number of results to be returned","example":10}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}},{"name":"phrase","in":"query","required":true,"schema":{"type":"string","minLength":3,"title":"Phrase","description":"A free text string used for searching"},"description":"A free text string used for searching"},{"name":"country","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Country code","description":"A country code relating to a citation"},"description":"A country code relating to a citation","example":"BW"},{"name":"keyword","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"title":"Keyword ID","description":"The ID of a keyword or phrase"},"description":"The ID of a keyword or phrase","example":"2113"},{"name":"report","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Report type code","description":"The code representing a report type"},"description":"The code representing a report type","example":"ART"},{"name":"author","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Author","description":"A substring that a citation author should contain"},"description":"A substring that a citation author should contain","example":"ALEMAW"},{"name":"startYear","in":"query","required":false,"schema":{"type":"integer","maximum":2026,"minimum":1800,"title":"Year","description":"The year after which a citation must be published","default":1800},"description":"The year after which a citation must be published","example":2001},{"name":"endYear","in":"query","required":false,"schema":{"type":"integer","maximum":2026,"minimum":1800,"title":"End year","description":"The year before which a citation must be published","default":2026},"description":"The year before which a citation must be published","example":2005},{"name":"onlyLinks","in":"query","required":false,"schema":{"type":"boolean","title":"Links only","description":"Only return those citations with a link to a resource","default":false},"description":"Only return those citations with a link to a resource","example":true},{"name":"ln","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchLanguage","title":"Search language","description":"The language: en, fr, pt, of the search","default":"en"},"description":"The language: en, fr, pt, of the search","example":"en"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","title":"Offset","description":"Of the results found offset should be the first returned","default":0},"description":"Of the results found offset should be the first returned","example":0},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","title":"Limit","description":"Maximum number of results to be returned","default":20},"description":"Maximum number of results to be returned","example":10}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/added_after/{date}":{"get":{"summary":"Citations Added After","operationId":"citations_added_after_agla_v1_added_after__date__get","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","format":"date","title":"date","description":"The date a citation is added or updated"},"description":"The date a citation is added or updated","example":"2020-12-31"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}},{"name":"date","in":"path","required":true,"schema":{"type":"string","format":"date","title":"date","description":"The date a citation is added or updated"},"description":"The date a citation is added or updated","example":"2020-12-31"}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}},"/agla/v1/updated_after/{date}":{"get":{"summary":"Citations Updated After","operationId":"citations_updated_after_agla_v1_updated_after__date__get","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","format":"date","title":"date","description":"The date a citation is added or updated"},"description":"The date a citation is added or updated","example":"2020-12-31"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"}}},"options":{"summary":"CORS support","parameters":[{"name":"Origin","in":"header","required":false,"example":"localhost","schema":{"type":"string"}},{"name":"Access-Control-Request-Method","in":"header","required":false,"example":"GET","schema":{"type":"string"}},{"name":"date","in":"path","required":true,"schema":{"type":"string","format":"date","title":"date","description":"The date a citation is added or updated"},"description":"The date a citation is added or updated","example":"2020-12-31"}],"responses":{"200":{"description":"Default response for CORS method","content":{}}}}}},"components":{"schemas":{"Citation":{"properties":{"id":{"type":"string","title":"Id","example":"AGLA000016"},"title":{"type":"string","title":"Title","example":"Groundwater residence times"},"year":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Year","example":"2010"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"keyphrases":{"items":{"$ref":"#/components/schemas/Keyword"},"type":"array","title":"Keyphrases"},"countries":{"items":{"$ref":"#/components/schemas/Country"},"type":"array","title":"Countries"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref","example":"British Geological Survey, UK. (IR/10/100)"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","example":"Report"},"resources":{"items":{"$ref":"#/components/schemas/Resource"},"type":"array","title":"Resources"},"no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"No","example":"IR/10/100"},"abstract":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Abstract"},"study":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Study","example":"AGLA"},"org":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org","example":"British Geological Survey"},"langs":{"items":{"$ref":"#/components/schemas/Language"},"type":"array","title":"Langs"},"coverage":{"$ref":"#/components/schemas/Coverage"}},"type":"object","required":["id","title","authors","keyphrases","countries"],"title":"Citation"},"CitationResponse":{"properties":{"msg":{"type":"string","title":"Msg","example":"Example response"},"type":{"type":"string","title":"Type","example":"success"},"self":{"type":"string","title":"Self","example":"http://example.com/apis/query"},"data":{"items":{"$ref":"#/components/schemas/Citation"},"type":"array","title":"Data"}},"type":"object","required":["msg","type","self"],"title":"CitationResponse"},"Country":{"properties":{"code":{"type":"string","title":"Code","example":"ZA"},"name":{"type":"string","title":"Name","example":"South Africa"}},"type":"object","required":["code","name"],"title":"Country"},"CountryResponse":{"properties":{"msg":{"type":"string","title":"Msg","example":"Example response"},"type":{"type":"string","title":"Type","example":"success"},"self":{"type":"string","title":"Self","example":"http://example.com/apis/query"},"data":{"items":{"$ref":"#/components/schemas/Country"},"type":"array","title":"Data"}},"type":"object","required":["msg","type","self"],"title":"CountryResponse"},"Coverage":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","example":"FeatureCollection"},"features":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array","title":"Features"}},"type":"object","title":"Coverage"},"Error":{"properties":{"error":{"type":"string","title":"Error","example":"error"},"propName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Propname","example":"error"},"desc":{"type":"string","title":"Desc","example":"Error message"}},"type":"object","required":["error","desc"],"title":"Error"},"ErrorResponse":{"properties":{"msg":{"type":"string","title":"Msg","example":"Example response"},"type":{"type":"string","title":"Type","example":"success"},"self":{"type":"string","title":"Self","example":"http://example.com/apis/query"},"errors":{"items":{"$ref":"#/components/schemas/Error"},"type":"array","title":"Errors"}},"type":"object","required":["msg","type","self"],"title":"ErrorResponse"},"Feature":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","example":"Feature"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","example":"9662"},"geometry":{"$ref":"#/components/schemas/Geometry"},"properties":{"$ref":"#/components/schemas/Property"}},"type":"object","title":"Feature"},"Geometry":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","example":"Point"},"coordinates":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"items":{"items":{"type":"number"},"type":"array"},"type":"array"}],"title":"Coordinates"}},"type":"object","title":"Geometry"},"IdResponse":{"properties":{"msg":{"type":"string","title":"Msg","example":"Example response"},"type":{"type":"string","title":"Type","example":"success"},"self":{"type":"string","title":"Self","example":"http://example.com/apis/query"},"data":{"items":{"type":"string"},"type":"array","title":"Data"}},"type":"object","required":["msg","type","self"],"title":"IdResponse"},"KeyPhraseTopicPair":{"properties":{"phrase":{"$ref":"#/components/schemas/Keyword"},"topic":{"$ref":"#/components/schemas/Keyword"}},"type":"object","required":["phrase","topic"],"title":"KeyPhraseTopicPair"},"Keyword":{"properties":{"type":{"type":"string","title":"Type","example":"Keyword"},"code":{"type":"string","title":"Code","example":"1001"},"text":{"type":"string","title":"Text","example":"A key phrase"},"language":{"type":"string","title":"Language","example":"eng"},"translation":{"type":"string","title":"Translation","example":"A key phrase"},"order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Order","example":1}},"type":"object","required":["type","code","text","language","translation"],"title":"Keyword"},"KeywordResponse":{"properties":{"msg":{"type":"string","title":"Msg","example":"Example response"},"type":{"type":"string","title":"Type","example":"success"},"self":{"type":"string","title":"Self","example":"http://example.com/apis/query"},"data":{"items":{"$ref":"#/components/schemas/KeyPhraseTopicPair"},"type":"array","title":"Data"}},"type":"object","required":["msg","type","self"],"title":"KeywordResponse"},"Language":{"properties":{"code":{"type":"string","title":"Code","example":"eng"},"name":{"type":"string","title":"Name","example":"English"}},"type":"object","required":["code","name"],"title":"Language"},"MatchItem":{"properties":{"id":{"type":"string","title":"Id"},"terms":{"items":{"type":"string"},"type":"array","title":"Terms"}},"type":"object","required":["id"],"title":"MatchItem"},"Meta":{"properties":{"paging":{"$ref":"#/components/schemas/PagingItem"},"matches":{"items":{"$ref":"#/components/schemas/MatchItem"},"type":"array","title":"Matches"}},"type":"object","title":"Meta"},"PagingItem":{"properties":{"offset":{"type":"integer","title":"Offset","example":50},"limit":{"type":"integer","title":"Limit","example":100},"total":{"type":"integer","title":"Total","example":236}},"type":"object","required":["offset","limit","total"],"title":"PagingItem"},"Property":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","example":"Country"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","example":"Nigeria"}},"type":"object","title":"Property"},"Resource":{"properties":{"pointer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pointer","example":"http://nora.nerc.ac.uk/501778/"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","example":"URL"}},"type":"object","title":"Resource"},"SearchLanguage":{"type":"string","enum":["en","fr","pt"],"title":"SearchLanguage"},"SearchLogic":{"type":"string","enum":["ANY","ALL"],"title":"SearchLogic"},"Summary":{"properties":{"id":{"type":"string","title":"Id","example":"AGLA000016"},"title":{"type":"string","title":"Title","example":"Groundwater residence times"},"year":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Year","example":"2010"},"authors":{"items":{"type":"string"},"type":"array","title":"Authors"},"keyphrases":{"items":{"$ref":"#/components/schemas/Keyword"},"type":"array","title":"Keyphrases"},"countries":{"items":{"$ref":"#/components/schemas/Country"},"type":"array","title":"Countries"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref","example":"British Geological Survey, UK. (IR/10/100)"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","example":"Report"},"resources":{"items":{"$ref":"#/components/schemas/Resource"},"type":"array","title":"Resources"}},"type":"object","required":["id","title","authors","keyphrases","countries"],"title":"Summary"},"SummaryResponse":{"properties":{"msg":{"type":"string","title":"Msg","example":"Example response"},"type":{"type":"string","title":"Type","example":"success"},"self":{"type":"string","title":"Self","example":"http://example.com/apis/query"},"data":{"items":{"$ref":"#/components/schemas/Summary"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/Meta"}},"type":"object","required":["msg","type","self"],"title":"SummaryResponse"}}}}