| Operation | RPC | REST |
|---|---|---|
| Signup | POST /signup | POST /persons |
| Resign | POST /resign | |
| { | ||
| “personid”: “1234” | ||
| } | DELETE /persons/1234 | |
| Read a person | GET /readPerson?personid=1234 | GET /persons/1234 |
| Read a person’s items list | GET /readUsersItemsList?personid=1234 | GET /persons/1234/items |
| Add an item to a person’s items | POST /addItemToUsersItemsList | |
| { | ||
| “personid”: “1234”; | ||
| “itemid”: “456” | ||
| } | POST /persons/1234/items | |
| { | ||
| “itemid”: “456” | ||
| } | ||
| Update an item | POST /modifyItem | |
| { | ||
| “itemid”: “456”; | ||
| “key”: “value” | ||
| } | PUT /items/456 | |
| { | ||
| “key”: “value” | ||
| } | ||
| Delete an item | POST /removeItem | |
| { | ||
| “itemid”: “456” | ||
| } | DELETE /items/456 |
CONCEPTS