diff --git a/biblio-tools/v1/unpaywall/is_oa.ini b/biblio-tools/v1/unpaywall/is_oa.ini index bbde4e9..1dac132 100644 --- a/biblio-tools/v1/unpaywall/is_oa.ini +++ b/biblio-tools/v1/unpaywall/is_oa.ini @@ -1,3 +1,10 @@ +# OpenAPI Documentation - JSON format (dot notation) +post.responses.default.description = Return a JSON, composed of `id`, `value`, where value is a DOI +post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.summary = Check if DOI is an open access reference +post.requestBody.required = true +post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream + # Necessary plugins [use] plugin = basics @@ -15,6 +22,9 @@ path = indent value = true +path = token +value = env('UNPAYWALL_API_KEY') + # Pour traiter par lot on groupe puis on utilise spawn qui crée un buffer par lot [group] @@ -47,7 +57,7 @@ [spawn/combine/URLStream] url = https://unpaywall.inist.fr/api/graphql -header = fix('x-api-key:', env('UNPAYWALL_API_KEY')).join(' ') +header = env('token').prepend('x-api-key:') path = data.GetByDOI.* timeout = 5000 noerror = false