issues
search
meateam
/
seal
MIT License
4
stars
0
forks
source link
Share API (Basic)
#12
Open
yonatandt
opened
6 years ago
yonatandt
commented
6 years ago
Controller Functions:
[x] getAll - get all shares (with filters: sharer)
[x] create - create a new share
[x] updatePermissions - updates the permissions of the share
[x] delete - deletes the share
Router
GET
[ ] /api/share - GET all shares
[ ] /api/share/:id - Get share by ID
[ ] /api/share/?user=user_id - Get all the user's shares
[ ] /api/share/?file=file_id - Get all the file's shares
POST
[ ] /api/share - create a new share
DELETE
[ ] /api/share - delete share by ID
PUT
[ ] /api/share/:id - update share by ID
Controller Functions:
Router
GET
POST
DELETE
PUT