Overview
HTTP REST JSON API
This is a demo documentation generated by tinyspec
— simple syntax for describing REST APIs.
Resources
Admin Endpoints
List and filter extended colors
GET /colors
Responses
HTTP Code | Schema |
---|---|
200 |
Response 200
Name | Schema |
---|---|
colors |
< ColorExtended > array |
totalCount |
integer |
Update color
PATCH /colors/:id
Parameters
Type | Name | Schema |
---|---|---|
Path |
id |
string |
Body |
body |
body
Name | Schema |
---|---|
color |
Guest Endpoints
List colors
GET /colors (guest)
Definitions
User
Name | Schema |
---|---|
id |
integer |
name |
string |
email |
string |
favoriteColors |
< Color > array |
UserUpdate
Name | Schema |
---|---|
name |
string |
email |
string |
favoriteColorIds |
< integer > array |
ColorExtended
Name | Schema |
---|---|
name |
string |
code |
string |
id |
integer |
createdAt |
string (date-time) |
updatedAt |
string (date-time) |
channels |
|
primaryChannel |
enum (red, green, blue) |
channels
Name | Schema |
---|---|
red |
integer |
green |
integer |
blue |
integer |