Request & Response
Use JSON as the primary data interchange format.
Structure responses as:
CRUD
C
SINGLE
{..}
(single object return from backend)
MANY
[...]
(many objects return from backend)
R
SINGLE
{..}
(single object return from backend)
MANY
[...]
(many objects return from backend)
U
SINGLE
{..}
(single object return from backend)
MANY
[...]
(many objects return from backend)
D
Note: consider just id / id[]
SINGLE
{..}
(single object return from backend)
MANY
[...]
(many objects return from backend)
Other
...?
Successful
{ message: "..." }
Error
{ error: "..." }
Last updated