code | type | title |
---|---|---|
true |
page |
getSpecifications |
Returns the validation specifications associated to the given index and collection.
URL: http://kuzzle:7512/<index>/<collection>/_specifications
Method: GET
{
"index": "<index>",
"collection": "<collection>",
"controller": "collection",
"action": "getSpecifications"
}
collection
: collection nameindex
: index name
Returns a specifications object with the following properties:
collection
: specified collectionindex
: specified indexvalidation
: specifications description
{
"status": 200,
"error": null,
"action": "getSpecifications",
"controller": "collection",
"collection": "<collection>",
"index": "<index>",
"result": {
"collection": "<collection>",
"index": "<index>",
"validation": {
"fields": {
"myField": {
"defaultValue": 42,
"mandatory": true,
"type": "integer"
}
},
"strict": true
}
}
}