Repository navigation
API‐Routes
This web app uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.
Returns a list of all the projects
- Request
- Method: GET
- URL: /api/projects
- Body: None
Return projects filtered by query parameters
- Request
- Method: GET
- URL: /api/projects
- Body: None
- Query Params
- page: integer, minimum: 1, maximum: 10, default: 1
- size: integer, minimum: 1, maximum: 20, default: 10
- title: string, optional
- location: string, optional
- endDate: string, optional
Returns the details of one project
- Request
- Method: GET
- URL: /api/projects/int:projectId
- Body: None
Creates and returns a new project
- Requires: AUTHENTICATION
- Request
- Method: POST
- URL: /api/projects
- Body: True
Edits and returns an existing project
- Requires: AUTHORIZATION
- Request
- Method: PUT
- URL: /api/projects/int:projectId
Deletes an existing project
- Requires: AUTHORIZATION
- Request
- Method: DELETE
- URL: /api/projects/int:projectId
Returns a list of all of the categories
- Request
- Method: GET
- URL: /api/categories
Returns a list of all of the projects belonging to the category
- Request
- Method: GET
- URL: /api/categories/str:categoryName
Returns a list of the project's rewards
- Request
- Method: GET
- URL: /api/int:projectId/rewards
Create and return new reward for a project
- Requires: AUTHORIZATION
- Request
- Method: POST
- URL: /api/projects/int:projectId/rewards
Edit and return an existing reward
- Requires: AUTHORIZATION
- Request
- Method: PUT
- URL: /api/projects/int:projectId/rewards
Delete a reward
- Requires: AUTHORIZATION
- Request
- Method: DELETE
- URL: /api/projects/int:projectId/rewards
Returns a list of the project's backers
- Request
- Method: GET
- URL: /api/projects/int:projectId/backers
Returns a list of the project's reward level's backers
- Request
- Method: GET
- URL: /api/projects/int:projectId/rewards/int:rewardId/backers
Add user as a backer of the project at rewardId level
- Required: AUTHENTICATION
- Request
- Method: POST
- URL: /api/projects/int:projectId/rewards/int:rewardId
User edits backing the project at rewardId level
- Required: AUTHORIZATION
- Request
- Method: PUT
- URL: /api/projects/int:projectId/rewards/int:rewardId
Delete the current user's backing of this project
- Required: AUTHORIZATION
- Request
- Method: DELETE
- URL: /api/projects/int:projectId/rewards/int:rewardId
Returns a list of the user's likes
- Required: AUTHORIZATION
- Request
- Method: GET
- URL: /api/users/int:userId/likes
Like a project
- Required: AUTHORIZATION
- Request
- Method: POST
- URL: /api/projects/int:projectId/like
Unlike a project
- Required: AUTHORIZATION
- Request
- Method: DELETE
- URL: /api/projects/int:projectId/like