{{ your name here }}
The website concept is a fundraiser to give gifts to underprivileged children. The fundraiser will have an option to either raise a certain amount of money or pledge specific items (through amount).
Intended audience is anyone who wants support/donate to underpriviledged children.
-
Home Page
- Featured kickstarters
-
Create New Fundraiser Page
- Form with fundraiser details
- Abilities to submit
- Nice error pages for validation
-
Display Fundraiser
- Shows all information about fundraiser
- Show all pledges made so far
-
{{ A page on the front end }}
- {{ A list of dot-points showing functionality is available on this page }}
- {{ etc }}
- {{ etc }}
-
{{ A second page available on the front end }}
- {{ Another list of dot-points showing functionality }}
- {{ etc }}
{{ Fill out the table below to define your endpoints. An example of what this might look like is shown at the bottom of the page.
It might look messy here in the PDF, but once it's rendered it looks very neat!
It can be helpful to keep the markdown preview open in VS Code so that you can see what you're typing more easily. }}
| URL | HTTP Method | Purpose | Request Body | Success Response Code | Authentication / Authorisation |
|---|---|---|---|---|---|
| /fundraisers/ | GET | Fetch all the fundraisers | N/A | 201 | None |
| /fundraisers/ | POST | Create a new fundraiser | JSON Payload | 201 | Any logged in user |
| /fundraisers/1/ | text | text | text | text | text |
| /pledges/ | GET | Fetch all the pledges | N/A | 200 | Any logged in user |
| /pledges/ | POST | Create a new pledge | JSON Payload {"fundraiser_id"} | 201 | Any logged in user |
Link to deployed project: https://karolt-crowdfunding-70503c219ccc.herokuapp.com/fundraisers/
Working POST endpoint (auth-token)

Working GET endpoint (fundraisers)

Working PUT endpoint (fundraisers)

Steps:
- Create a user using POST person
- Log in
- Check all available fundraisers using GET fundraiser
- Call POST api-auth, create a fundraiser using POST fundraiser
- Pledge using POST pledge