Our API allows users to find and add new fishing spots in their area, and keep a journal of their fishing experiences there. Fish Friends front end uses this Rest API to display log and display journal entries.
Check out our Product Canvas
POST: /api/auth/register
{
"username": "bestfisherman",
"password": "mysecretthing"
}
POST: /api/auth/login
{
"username": "bestfisherman",
"password": "mysecretthing"
}
POST: /api/journals
{
"numFishCaught": 2,
"date": "December 22nd, 2019",
"timeOfDay": "Morning",
"location": "Hickory Creek",
"fishType": ["Bass", "Catfish"], -----> not required
"bait": "worms", -----> not required
"bankOrBoat": "Bank",
"waterType": "Freshwater",
"notes": null
}
PUT: /api/journals/:id
{
"numFishCaught": 2,
"date": "December 22nd, 2019",
...
}
GET: /api/journals
returns an array containing all journal entries
GET: /api/journals/user/:id
returns an array containing a single users journal entries
DELETE: /api/journals/:id
Returns 204 on successful delete