Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 2.45 KB

README.md

File metadata and controls

61 lines (39 loc) · 2.45 KB

PlanTips

Quality Gate Status Coverage Technical Debt

API REST for PlanTips app

Endpoints

User

POST /user/login

  • Fetch user's token
  • Send token in the response body

Protected endpoints

Tips

GET /tips

  • Fetch a list of Tips
  • Send Tips in the response body

GET /tips/my-tips

  • Fetch a list of Tips created by the logged user (my Tips)
  • Send my Tips in the response body

POST /tips/create

  • Add a new Tip to the database
  • Include new Tip in the response body

DELETE /tips/delete/:id

  • Fetch a single Tip from the database
  • Include selected Tip in the response body

GET /tips/:id

  • Fetch a list of Tips that match the careLevel filter
  • Include filtered Tips in the response body

GET /tips?careLevel

  • Fetch a list of Tips that match the careLevel filter
  • Include filtered Tips in the response body

Tech stack

Typescript NodeJS Express MongoDB Jest Supertest JSON Web Token bcrypt