Newer
Older
web-services / affiliations-tools / swagger.json
@Nicolas Thouvenin Nicolas Thouvenin on 20 Oct 4 KB change url
{
	"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"
						}
					}
				}
			}
		}
	}
}