diff --git a/affiliations-tools/swagger.json b/affiliations-tools/swagger.json index 2174159..9a0d8bd 100644 --- a/affiliations-tools/swagger.json +++ b/affiliations-tools/swagger.json @@ -1,204 +1,33 @@ { - "openapi": "3.1.0", - "info": { - "title": "affiliations-tools - Structuration & enrichissements d'affiliations", - "summary": "Propose plusieurs services autour des affiliations présentes dans les notices bibliographiques", - "version": "1.1.2", - "termsOfService": "https://services.istex.fr/", - "contact": { - "name": "Inist-CNRS", - "url": "https://www.inist.fr/nous-contacter/" - } - }, - "servers": [ - { - "x-comment": "Will be automatically completed by the ezs server." - }, - { - "url": "http://vptdmservices.intra.inist.fr:49207/", - "description": "Latest version for production", - "x-profil": "Standard" - }, - { - "url": "http://vitdmservices.intra.inist.fr:49294/", - "description": "only for personal or local usage" - } - ], - "tags": [ - { - "name": "affiliations", - "description": "Affiliations", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools" - } - }, - { - "name": "rnsr", - "description": "RNSR", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools#v1%2frnsr%2fcsv" - } - }, - { - "name": "adresses", - "description": "Adresses", - "externalDocs": { - "description": "Plus de documentation", - "url": "https://gitbucket.inist.fr/tdm/web-services/tree/master/affiliations-tools#v1%2faddresses%2fparse" - } - } - ], - "components": { - "schemas": { - "NoticesRnsr": { - "type": "array", - "items": { - "$ref": "#/components/schemas/NoticeRnsr" - } - }, - "NoticeRnsr": { - "type": "object", - "properties": { - "xPublicationDate": { - "type": "array", - "items": { - "type": "string", - "format": "date" - } - }, - "authors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AuthorRnsr" - } - } - } - }, - "Notices": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Notice" - } - }, - "Notice": { - "type": "object", - "properties": { - "xPublicationDate": { - "type": "array", - "items": { - "type": "string", - "format": "date" - } - }, - "authors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Author" - } - } - } - }, - "Author": { - "type": "object", - "properties": { - "affiliations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Affiliation" - } - } - } - }, - "AuthorRnsr": { - "type": "object", - "properties": { - "affiliations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AffiliationRnsr" - } - } - } - }, - "Affiliation": { - "type": "object", - "properties": { - "address": { - "type": "string" - } - } - }, - "AffiliationRnsr": { - "type": "object", - "properties": { - "address": { - "type": "string" - }, - "conditorRnsr": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RNSR" - } - } - } - }, - "RNSR": { - "type": "string", - "pattern": "^[0-9]{9}[A-Z]$", - "example": "200919362L" - }, - "IdYearAddresses": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdYearAddress" - } - }, - "IdYearAddress": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "value": { - "$ref": "#/components/schemas/YearAddress" - } - } - }, - "YearAddress": { - "type": "object", - "properties": { - "year": { - "type": "string", - "format": "date" - }, - "address": { - "type": "string", - "example": "University of Bordeaux, IMS, CNRS UMR5218, Talence, F-33405, France" - } - } - }, - "IdRNSRs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdRNSR" - } - }, - "IdRNSR": { - "type": "object", - "properties": { - "id": { - "type": "integer" - }, - "value": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RNSR" - } - } - } - } - } - } -} + "openapi": "3.0.0", + "info": { + "title": "affiliations-tools - Structuration et enrichissements d'affiliations", + "summary": "Propose plusieurs services autour des affiliations présentes dans les notices bibliographiques", + "version": "1.1.3", + "termsOfService": "https://services.istex.fr/", + "contact": { + "name": "Inist-CNRS", + "url": "https://www.inist.fr/nous-contacter/" + } + }, + "servers": [ + { + "x-comment": "Will be automatically completed by the ezs server." + }, + { + "url": "http://vptdmservices.intra.inist.fr:49254/", + "description": "Latest version for production", + "x-profil": "Standard" + } + ], + "tags": [ + { + "name": "affiliations-tools", + "description": "Structuration et enrichissements d'affiliations", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://github.com/inist-cnrs/web-services/tree/main/services/affiliations-tools" + } + } + ] +} \ No newline at end of file