Created
January 7, 2014 08:22
-
-
Save kevinobee/8296203 to your computer and use it in GitHub Desktop.
Metadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"actions": { | |
"GET": [ | |
{ | |
"FetchEntities": { | |
"returnType": "SitecoreCms.Models.SimpleData[]", | |
"properties": {} | |
} | |
}, | |
{ | |
"FetchEntity": { | |
"returnType": "SitecoreCms.Models.SimpleData", | |
"properties": { | |
"key": "id", | |
"datatype": "Guid" | |
} | |
} | |
} | |
], | |
"POST": { | |
"CreateEntity": { | |
"returnType": "void", | |
"properties": { | |
"key": "entity", | |
"datatype": "SitecoreCms.Models.SimpleData" | |
} | |
} | |
}, | |
"PUT": {}, | |
"DELETE": {} | |
}, | |
"entity": { | |
"properties": [ | |
{ | |
"key": "Value", | |
"datatype": "string", | |
"validators": [ | |
{ | |
"validatorName": "regex", | |
"errorMessage": "Must be alphanumeric string", | |
"param": "[A-Za-z_][A-Za-z_0-9]*." | |
}, | |
{ | |
"validatorName": "required", | |
"errorMessage": "Value is required" | |
}, | |
{ | |
"validatorName": "email", | |
"errorMessage": "Value should be a an email address" | |
}, | |
{ | |
"validatorName": "string", | |
"errorMessage": "Must be less than 50 characters in length", | |
"param": [ | |
0, | |
50 | |
] | |
} | |
] | |
}, | |
{ | |
"key": "Id", | |
"datatype": "guid", | |
"validators": [] | |
} | |
] | |
} | |
} |
dervalp
commented
Jan 7, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment