Api for favs, the new company that aims to provide a better way to organize your favorite things: music, clothes, courses, etc., all in one place.
- Node
- Mongoose
- Mongo
- Get the environment variables in the report
- Clone this repository
- Execute npm install
- Use postman to test the API.
- Register with a valid email (e.g [email protected]) and a valid password (e.g 12345678Az) in the url http://localhost:8080/users/register/
- With the token you get, you can make the next requests adding it to the header as Authorization. (Don't forget to type Bearer before the token in the field).
- These are the requests you can do:
- Create list (POST: http://localhost:8080/lists). Yo need a name.
- Find user's list (GET: http://localhost:8080/lists)
- Find a specific list (GET: http://localhost:8080/lists/:listId)
- Delete one list for unique id (DELETE: http://localhost:8080/lists/:listId)
- Create a fav in a list (POST: http://localhost:8080/favs/:listId)