diff --git a/biblio-tools/examples.http b/biblio-tools/examples.http index 9891d17..412f104 100644 --- a/biblio-tools/examples.http +++ b/biblio-tools/examples.http @@ -51,6 +51,7 @@ { "value": "10.1007/s10980-018-0699-8" }, { "value": "10.1159/000490004" }, { "value": "10.1016/j.memsci.2018.08.024"}, - { "value": "10.1029/2018jd029272"} + { "value": "10.1029/2018jd029272"}, + { "value": "10.4000/edc.9014"} ] ### diff --git a/biblio-tools/swagger.json b/biblio-tools/swagger.json index a1424e2..03f9744 100755 --- a/biblio-tools/swagger.json +++ b/biblio-tools/swagger.json @@ -1,14 +1,4 @@ { - "servers": [ - { - "url": "{scheme}://{hostname}", - "variables": { - "scheme": { - "default": "https" - } - } - } - ], "tags": [ { "name": "bibliography", @@ -18,27 +8,5 @@ "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/bilbio-tools" } } - ], - "components": { - "schemas": { - "IdDOIList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdDOIItem" - } - }, - "IdDOIItem": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "value": { - "type": "string", - "example": "10.4000/edc.9014" - } - } - } - } - } + ] } diff --git a/biblio-tools/v1/crossref/prefixes/expand.ini b/biblio-tools/v1/crossref/prefixes/expand.ini index 278277b..dfa432a 100644 --- a/biblio-tools/v1/crossref/prefixes/expand.ini +++ b/biblio-tools/v1/crossref/prefixes/expand.ini @@ -3,11 +3,21 @@ post.operationId = post-v1-crossref-prefixes-expand post.description = Verbalisation du préfix DOI à partir d'un DOI complet ou just eà partir du préfixe +post.summary = erbalisation à partir d'un tableau d'objets avec à minima un champ value contenant le DOI post.tags.0 = bibliography -post.responses.default.description = Renvoit une liste d'objet reçu avec le champ 'value' modifié -post.summary = Verbalisatino à partir d'un tableau d'objets contenant à minima le champ value +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.value = 10.4000/edc.9014 +post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.requestBody.required = true -post.requestBody.content.application/json.schema.$ref = #/components/schemas/IdDOIList +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = OpenEdition +post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream +post.responses.default.description = Les prefixes DOI en verion textuel +post.parameters.0.description = Indenter le JSON résultant +post.parameters.0.in = query +post.parameters.0.name = indent +post.parameters.0.schema.type = boolean # Necessary plugins