https://github.com/gelstudios/cloudwalker
https://github.com/gelstudios/cloudwalker
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gelstudios/cloudwalker
- Owner: gelstudios
- Created: 2019-02-17T15:45:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T13:05:11.000Z (about 3 years ago)
- Last Synced: 2025-04-06T04:04:37.040Z (9 months ago)
- Language: C++
- Size: 50.8 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cloudwalker
## API Endpoints
### Get Available Shoe IDs
Example: `curl api.iot.shoes`
* **Method**: `GET`
* **Success Response**:
* **Code**: `200 OK`
* **Example**:
```json
[4,1,3,2]
```
### Change Shoe Color
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**:
```json
{"1":"color updated","2":"color updated"}
```
* **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.