Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 792 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 792 Bytes

tindev-backend

Backend of Tindev the node project of Semana Omnistack 8.

endpoints:

GET

<server>:3333/

Headers { user: user._id} _user.id is the id of the logged user

Returns a list of avaiable devs to be liked,

When no user header are send

Returns a list of all devs ids.

POST

<server>:3333/devs/new

dev = { "username": "user-name-on-github" }

Receives a dev to add at the database.

<server>:3333/devs/:devId/like

Headers { user: user._id} _user.id is the id of the logged user

Likes the dev with the devId.

<server>:3333/devs/:devId/dislike

Headers { user: user._id} _user.id is the id of the logged user

Dislikes the dev with the devId.