Example: curl api.iot.shoes
- Method:
GET
- Success Response:
- Code:
200 OK
- Example:
[4,1,3,2]
- Code:
Change the color on one or more shoes.
Example: curl -d "shoeIds[]=1" -d "shoeIds[]=2" -d "color=blue" api.iot.shoes
- Method:
POST
- Success Response:
- Code:
202 Accepted
- Example:
{"1":"color updated","2":"color updated"}
- Code:
- Error Response:
- Code:
400 Bad Request
- Conditions:
- Not specifying one or more shoe Ids.
- Not specifying a color.
- One or more shoe Ids do not exist.
- Invalid color.
- Code: