Easily generates the data portion of your app, so you can get onto doing other things.
api/user.json
{
"_info": {
"id": "name"
},
"name": {
"type": "string",
"limit": 32
},
"password": {
"type": "passhash",
"hidden": true
},
"email": {
"type": "string",
"limit": 64
},
"friends": {
"type": "list:user"
}
}
curl {url}/api/user/ncrosby.json
{
"name": "ncrosby",
"email": "[email protected]",
"friends": [
"rsteyn"
]
}
curl {url}/api/user/rsteyn.json?expand=friends
{
"name": "rsteyn",
"email": "[email protected]",
"friends": [
{
"name": "ncrosby",
"email": "[email protected]",
"friends": [
"rstyen"
]
}
]
}
curl {url}/api/user/rsteyn.json?expand=friends&expand_style=map
{
"name": "rsteyn",
"email": "[email protected]",
"friends": {
"ncrosby": {
"name": "ncrosby",
"email": "[email protected]",
"friends": [
"rstyen"
]
}
}
}
curl {url}/api/users.json
[
"ncrosby",
"rsteyn"
]