{
"general": {
"description": "Person resource",
"majorVersion": 1,
"icon": "map",
"lifecycle": {
"deprecated": false,
"info": "This version is valid"
},
"x-route": "/:version/person/:entity"
},
"verbs": [
{
"verb": "POST",
"rel": "Add person",
"responseStates": [
{
"code": 200,
"message": "200 Ok",
"comment": "content in response body"
},
{
"code": 503,
"message": "503 Service Unavailable",
"comment": "Backend server eventually not reachable or to slow"
}
],
"defaultRepresentation": "json",
"representations": [
{
"name": "json",
"comment": "",
"responseExample": "{...}",
"isDefault": true,
"mimetype": "application/json"
}
],
"options": [
],
"permissions": [
{
"name": "role-a",
"mode": "all",
"comment": ""
}
]
}
],
"fields": [
{
"name": "id",
"type": "uuid",
"options": null,
"mandatory": [],
"min": null,
"max": null,
"multiple": false,
"defaultValue": null,
"protected": [false],
"visible": true,
"sortable": true,
"scopeable": true,
"x-comment": "unique identifier"
},
{
"name": "name",
"type": "string",
"options": null,
"mandatory": ["POST"],
"min": 1,
"max": 30,
"multiple": false,
"defaultValue": null,
"protected": [false],
"visible": true,
"sortable": false,
"scopeable": false,
"x-comment": "The name of the person"
}
],
"subresources": []
}