2.2.1. API za generiranje identifikatora - JSON
{
"openapi": "3.0.3",
"info": {
"version": "0.1.0",
"title": "Identifier Registry",
"description": "API for registration of identifiers",
"contact": {
"name": "Krešimir Kerš",
"email": "kresimir.kers@ericsson.com"
}
},
"paths": {
"/generateOIDBatch": {
"post": {
"description": "Generates one or more OID identifiers",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/request"
}
}
}
},
"responses": {
"200": {
"description": "Registered OID identifiers",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/responseOK"
}
}
}
},
"500": {
"description": "Error response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/responseError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"request": {
"type": "object",
"required": [
"oidType",
"quantity"
],
"properties": {
"oidType": {
"type": "object",
"required": [
"system",
"code"
],
"properties": {
"system": {
"type": "string"
},
"code": {
"type": "string"
}
}
},
"quantity": {
"type": "integer"
}
}
},
"responseOK": {
"type": "object",
"required": [
"OID"
],
"properties": {
"OID": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"responseError": {
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"errorCode"
],
"properties": {
"errorCode": {
"type": "object",
"required": [
"system",
"code"
],
"properties": {
"system": {
"type": "string",
},
"code": {
"type": "string"
}
}
},
"errorDescription": {
"type": "string"
}
}
}
}
}
}
}
}