Deviation from the REST format -- targeted for mobile.
REST is great. Actually, it’s probably just good. However, when adopted for mobile, it is problematic.
{
"flow": "series",
"error": "terminate",
"requests": [
{
"id": "0",
"method": "GET",
"path": "/users"
},
{
"id": "1",
"method": "POST",
"path": "/users",
"body": {
"name": "John Doe",
"email": "john@doe.com"
}
},
{
"id": "2",
"method": "DELETE",
"path": "/users/123"
}
]
}
{
"responses": [
{
"id": "0",
"body": {
"status": "success",
"data": [
{
"id": "123",
"name": "Jane Doe",
"email": "jane@doe.com"
},
{
"id": "456",
"name": "Jimmy Doe",
"email": "jimmy@doe.com"
}
]
}
},
{
"id": "1",
"body": {
"status": "success",
"data": {
"id": "789",
"name": "John Doe",
"email": "john@doe.com"
}
}
},
{
"id": "2",
"body": {
"status": "success"
}
}
]
}
Coming soon…
GET /user/
)POST /user/
)PUT /user/{id}
)DELETE /user/{id}
)