Backend Routes - slavnikov/BootUp GitHub Wiki
Backend Routes
HTML
GET /
StaticPagesController#root
API Endpoints
users
GET /api/users
- returns the user name, projects, and backings of admins and/or backers of displayed projects and/or current user
GET /api/users/:id
- returns full data on specific user
POST /api/users
- sign up
session
POST /api/session
- log in
DELETE /api/session
- log out
projects
GET /api/projects
- returns name, thumb, short description, and funding stats of projects (filtered by category, backer, admin, or search matching)
GET /api/projects/:id
- returns specific project with full data
POST /api/project
- creates a project
PATCH /api/project/:id
- update a project
DELETE /api/project/:id
- remove a project
rewards
GET /api/rewards
- returns name, pledge_amount, short description (filtered by backer or project)
GET /api/rewards/:id
- returns specific reward
POST /api/reward
- creates a reward
PATCH /api/reward/:id
- update a reward
DELETE /api/reward/:id
- remove a reward