Implement a new property type - enum (enumeration).
Example model definition:
{
"name": "Person",
"properties": {
"sex": {
"type": "enum",
"values": ["male", "female", "other"]
}
}
}
Example remoting argument definition:
{
accepts: {
arg: 'sex', type: 'enum', values: ['male', 'female', 'other'],
http: { source: 'query' }
}
}
Implementation details:
Implement a new property type - enum (enumeration).
Example model definition:
{ "name": "Person", "properties": { "sex": { "type": "enum", "values": ["male", "female", "other"] } } }Example remoting argument definition:
Implementation details: