๐๐ณ Build a Rest API using Swagger.
$ yarn
$ yarn start
Go to here to view api documents.
Route | HTTP method | Description |
---|---|---|
/api/cats | GET |
Get all the cats. |
/api/cats | POST |
Create a cat. |
/api/cats/:catId | GET |
Get a single cat. |
/api/cats/:catId | PUT |
Update a cat with new info. |
/api/cats/:catId | DELETE |
Delete a cat. |