Endpoint: /users
# Request
HTTP verbs: http://www.restapitutorial.com/lessons/httpmethods.html
- name
- password
none
- single user:
/users/{id}
- users:
/users
none
- name
- single user:
/users/{id}
- users:
/users
none
- name
- single user:
/users/{id}
- id
- name
- password
none
- single user:
/users/{id}
- id
- name
- password
single resource
{
"data": {
"type": "users",
"id": "1",
"attributes": {
"name": "john",
"email": "john@thesmithcompany.com",
"password": "ja8q\+Y!?FCD3":P"
}
}
}
multiple resources
{
"data": [{
"type": "users",
"id": "1",
"attributes": {
"name": "john",
"email": "john@thesmithcompany.com",
"password": "ja8q\+Y!?FCD3\":P"
}
},
{
"type": "users",
"id": "2",
"attributes": {
"name": "bob",
"email": "bob@hello.co.uk",
"password": "ja8q\+Y!?FCD3(:P"
}
}]
}