diff --git a/authors-tools/examples.http b/authors-tools/examples.http index 151ea1c..83313b6 100644 --- a/authors-tools/examples.http +++ b/authors-tools/examples.http @@ -5,10 +5,6 @@ [ { "id":"1", - "value":[{"firstName" : "Pascal", "lastName" : "Cuxac", "email" : ["blabla@blabla.fr","pascal.cuxac@inist.fr"]}] - }, - { - "id":"2", "value":[{"firstName" : "Rubén", "lastName" : "Vázquez-Cárdenas", "coAuthors" : ["Juan pablo Martínez-Pastor"]}] } ] diff --git a/authors-tools/swagger.json b/authors-tools/swagger.json index 8ebb85c..f24a0ee 100644 --- a/authors-tools/swagger.json +++ b/authors-tools/swagger.json @@ -1,4 +1,7 @@ { + "info": { + "version": "2.0.0" + }, "servers": [{ "url": "{scheme}://{hostname}", "variables": { @@ -9,8 +12,8 @@ }], "tags": [ { - "name": "orcidDisambiguation", - "description": "Désambiguisation d'auteur orcid", + "name": "authors-tools", + "description": "Outils sur les auteurs", "externalDocs": { "description": "Plus de documentation", "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/authors-tools" diff --git a/authors-tools/v1/orcid-disambiguation/orcidDisambiguation.ini b/authors-tools/v1/orcid-disambiguation/orcidDisambiguation.ini index bfc5b83..c1c2962 100644 --- a/authors-tools/v1/orcid-disambiguation/orcidDisambiguation.ini +++ b/authors-tools/v1/orcid-disambiguation/orcidDisambiguation.ini @@ -1,8 +1,15 @@ # OpenAPI Documentation - JSON format (dot notation) + +post.requestBody.content.application/json.example.0.id = 1 +post.requestBody.content.application/json.example.0.value.0.firstName = Rubén +post.requestBody.content.application/json.example.0.value.0.lastName = Vázquez-Cárdenas +post.requestBody.content.application/json.example.0.value.0.coAuthors.0 = Juan pablo Martínez-Pastor +post.requestBody.required = true +post.responses.default.content.application/json.example.0.id = 1 +post.responses.default.content.application/json.example.0.value = 0000-0002-8416-869X post.responses.default.description = Return all objects with enrich fields post.responses.default.content.application/json.schema.$ref = #/components/schemas/JSONStream post.summary = Disambiguation of Orcid author -post.requestBody.required = true post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream post.parameters.0.in = query post.parameters.0.name = path