Mvolz has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/356559 )
Change subject: Update spec.yaml and remove deprecated aspects ...................................................................... Update spec.yaml and remove deprecated aspects * Update version * Remove deprecated /url endpoint * Remove tests that query external websites with the exception of www.example.com; reduces false alerts due to the instability of other websites * Uncomment and update some previously failing tests Bug: T163986 Change-Id: Idf6ff5fa288dab217c62c92114576d0810cccce4 --- M spec.yaml 1 file changed, 22 insertions(+), 45 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/citoid refs/changes/59/356559/1 diff --git a/spec.yaml b/spec.yaml index 2cc912a..84ff490 100644 --- a/spec.yaml +++ b/spec.yaml @@ -1,6 +1,6 @@ swagger: '2.0' info: - version: 0.2.7 + version: 0.5.2 title: Citoid description: A citation service relying on Zotero termsOfService: https://wikimediafoundation.org/wiki/Terms_of_Use @@ -54,55 +54,32 @@ version: /.+/ home: /.+/ # from routes/citoid.js - /url: - post: - tags: - - Citations - description: Converts URLs, DOIs, etc into citations. Note that this - endpoint is deprecated. - produces: - - application/json - x-monitor: false /api: get: tags: - Citations - description: Converts URLs, DOIs, etc into citations + description: Converts URLs, DOIs, ISBNs, PMIDs, etc into citations produces: - application/json x-amples: -# - title: bad URL -# request: -# query: -# format: mediawiki -# search: http://example.com/thisurldoesntexist -# headers: -# accept-language: en -# response: -# status: 520 -# - title: bad PMCID -# request: -# query: -# format: mediawiki -# search: PMC9999999 -# headers: -# accept-language: en -# response: -# status: 404 -# - title: web site in alternative language -# request: -# query: -# format: mediawiki -# search: http://twitter.com -# headers: -# accept-language: de -# response: -# status: 200 -# body: -# - itemType: /.+/ -# title: /Willkommen bei Twitter/ -# url: /.+/ -# accessDate: /.+/ + - title: bad URL + request: + query: + format: mediawiki + search: http://example.com/thisurldoesntexist + headers: + accept-language: en + response: + status: 404 + - title: bad PMCID + request: + query: + format: mediawiki + search: PMC9999999 + headers: + accept-language: en + response: + status: 404 - title: Zotero alive request: query: @@ -112,11 +89,11 @@ accept-language: en response: status: 200 - - title: open graph via native scraper + - title: Scrapes sample page request: query: format: mediawiki - search: http://www.pbs.org/newshour/making-sense/care-peoples-kids/ + search: http://example.com headers: accept-language: en response: -- To view, visit https://gerrit.wikimedia.org/r/356559 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idf6ff5fa288dab217c62c92114576d0810cccce4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/citoid Gerrit-Branch: master Gerrit-Owner: Mvolz <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
