-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Summary
We need to create table in the database to store the comments section in each individual pin.
Table Structure
id
->uuid
/int
userId
->uuid
/int
[check [BE]/user
endpoint #158 ]createdAt
-> datepinId
->uuid
/int
[check [BE]/pins
endpoint #160]content
->string
Endpoint
The endpoint should contain the following methods:
GET
-> params{ pinId }
POST
-> params{ userId, pinId, content }
DELETE
-> params{ id }
The endpoint can have a url like /api/comments
Important
Please communicate in the team about which strategy of id
will be used, the project should use the SAME id structure everywhere.