An API built with Fiber and MongoDB.
Tutorial available at: dev.to
GET /catchphrases
Optional Parameter | Type | Description | Example |
---|---|---|---|
s |
string |
Serach Movie Name or Catchphrase | ?s=exmpletext |
page |
int |
Page number. Default: 1 | ?page=2 |
limit |
int |
Limit number of catchphrases per page. Default: 10 | ?limit=20 |
GET /catchphrases/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of catchphrase to fetch |
POST /catchphrases
{
"movieName": "AUSTIN POWERS: INTERNATIONAL MAN OF MYSTERY",
"catchphrase": "Yeah baby, yeah!",
"movieContext": "Austin Powers, conversing with his partner, Mrs. Kensington"
}
PATCH /catchphrases/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of catchphrase to update |
{
"movieName": "AUSTIN POWERS: INTERNATIONAL MAN OF MYSTERY",
"catchphrase": "Yeah baby, yeah!",
"movieContext": "Austin Powers, conversing with his partner, Mrs. Kensington"
}
// All three fields are optional when updating
DELETE /catchphrases/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of catchphrase to delete |