Backend Routes - mataghva/Footprint GitHub Wiki
HTML
GET /
StaticPageController#root
API Endpoints (Backend)
users
GET /api/users
- returns the information of all users
POST /api/users
- sign up
PATCH /api/users/:id
- edits a specific user profile page
session
GET /api/session
- log in
POST /api/session
- log out
trails
GET /api/trails
- returns the information of all trails (filtered by data
/params
)
GET /api/trails/:id
- returns the infromation of a specific trail
parks
GET /api/parks/:id
- returns the infromation of a specific park
reviews
GET /api/reviews
- returns all reviews
GET /api/reviews/:id
- returns a specific review
POST /api/reviews
- creates a review
PATCH /api/reviews/:id
- edit a review
DELETE /api/reviews/:id
- remove a review