Regret Vault Api

Regret Vault Api

8 devlogs
8h 19m
•  Ship certified
Created by Turbash Negi

Api for users to post their biggest regrets. Can post a public or a private regret. All users can view public requests. Authentication using jwt token. Logged in users can view,edit, post, delete their regrets. Get regrets by id is also availabe where anyone can get public regrets but only authenticated users can view private ones (only their own private regrets). Also there are search routes one to search all public regrets by name and message. And one to search all your regrets by name and message.

Timeline

Ship 1

1 payout of shell 74.0 shells

Turbash Negi

over 1 year ago

Turbash Negi • Covers 8 devlogs and 8h 19m

Added to new search routes
to search regrets by message and title
one protected route to search in you own regrets
and one unprotected for all public regrets
Ran into some routing issues but fixed it
The regrets/:id was interfering with regrets/search
So i just defined regrets/search earlier
And yeah wrote a nice readme for the project all by myself

Update attachment

Deployed api on render now
Configured cors to allows docs to make requests and be interactive
Docs are now available, i have added the demo links
I have also added two more routes now to search for specific regrets
Now all that is left is to right documentation for those routes and write the readme

Update attachment

Added delete regrets route and the documentation for it. I am done with the eight requirement routes for endpointer but i have 1 and a half hour left for 8 hours so i will add some more maybe 2 more routes, write a nice readme deploy the api somewhere for free and submit.

Update attachment

Added a new put request to allow users to edit their regrets.
Only authenticated users can edit, and event they can edit only their own regrets obviously. Also added docs for this route as well. Using correct status codes everywhere now

Update attachment

Added two more routes one to view a specific regret by id
where u need to be logged in if u are viewing a private regret and only u can view ur private regret, no need to be logged in if public regret. and one more get request to view all of ur own regrets u posted. Documentation also done for all routes till now. Now i will work on put and delete routes.

Update attachment

Added two new routes and documentation for them
a /regrets post to post new regrets public or private
and a /regrets get to get all public regrets from database

Update attachment

Added swagger api docs for the two routes created
so far. also docs are accesable at /docs route.

Update attachment

Done with basic setup of api
two routes login and register done
Will keep adding docs simultaneously

Update attachment