Database, server/api, authentication, testing
https://refu-stories-api.herokuapp.com/
Refugee Stories (Server)
People visiting the site will gain a better understanding of the refugee crisis and what it means to be a refugee. There are more people displaced in the world today than at any time since the end of World War II and it is more important than ever to help people develop empathy for each other.
What makes your project stand out?
Clone Fork NPM Install
https://refu-stories-api.herokuapp.com/users/register expects username, and password. will return username and authZ token
https://refu-stories-api.herokuapp.com/users/login expects username, and password. will return username and authZ token
https://refu-stories-api.herokuapp.com/stories Doesn't expect anything -- unsecure route -- returns JS object of stories
https://refu-stories-api.herokuapp.com/stories/:id Doesn't expect anything -- unsecure route -- returns JS object of story with id matching the url
https://refu-stories-apiherokuapp.com/stories/a/pending returns a list of ONLY pending stories. must be logged in as admin
https://refu-stories-api.herokuapp.com/stories expects a body with title, contents, and pending. body can also include name, email, and user_id resolves to the newly added story
https://refu-stories-api.herokuapp.com/stories/:id expects a body with contents, and story_id
https://refu-stories-api.herokuapp.com/stories/:id doesn't expect anything
https://refu-stories-api.herokuapp.com/stories/:id/comments doesn't expect anything, returns array of comments
https://refu-stories-api.herokuapp.com/stories/:id/comments requires contents and story_id in the req.body returns the created comment
https://refu-stories-api.herokuapp.com/stories/comments/:id returns 'deleted' and 1 if successful -- deleted and 0 if there was no comment
npm run server npm run test
Contact the author - https://ixlives.github.io/
MIT © [IX Lives](Ian Bryant)