Skip to content

Repository files navigation

Back-End

API URI

https://fish-friends-build-week.herokuapp.com/

Endpoints

MethodPathDescriptionNote
GET/accounts/retrieves all existing users
GET/accounts/:idretrieves 1 existing user by id
GET/accounts/:nameretrieves 1 existing user by name
POST/accounts/registerto create a usertakes username/password -- for now
POST/accounts/loginto login a usertakes username/password -- for now
PUT/accounts/:idid as route param and new name as body of requestcan only update username
DELETE/accounts/:idaccount id as route param
GET/locationsdisplays locationsrequires "authorization" token in header
GET/locations/:iddisplays location with specified idrequires "authorization" token in header
POST/locationsadds new locationrequires "authorization" token in header
PUT/locations/:idid as route param and new location as body of requestcan only update location_name
DELETE/locations/:idlocation id as route param
GET/baitdisplays baitrequires "authorization" token in header
GET/bait/:iddisplays bait with specified idrequires "authorization" token in header
POST/baitadds new baitrequires "authorization" token in header
PUT/bait/:idid as route param and new bait as body of requestcan only update bait_name
DELETE/bait/:idbait id as route param
GET/fishdisplays fishrequires "authorization" token in header
GET/fish/:iddisplays fish with specified idrequires "authorization" token in header
POST/fishadds new fishrequires "authorization" token in header
PUT/fish/:idid as route param and new fish as body of requestcan only update fish name
DELETE/fish/:idfish id as route param
GET/logsdisplays logsrequires "authorization" token in header
GET/logs/:iddisplays log with specified idrequires "authorization" token in header
POST/logsadds new logrequires "authorization" token in header
PUT/logs/:idid as route param and new log as body of requestcan only update location_id, log time_spent
DELETE/logs/:idlog id as route param
GET/logs/search/:textsearches for and returns array of existing logs based on query
GET/logs/:id/baitretrieves all bait used in a log by the log id passed into the route params
GET/logs/:id/fishretrieves all fish used in a log by the log id passed into the route params

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages