-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi-endpoints.txt
More file actions
41 lines (34 loc) · 1.12 KB
/
api-endpoints.txt
File metadata and controls
41 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Users
* Register - Public
POST - /users/register - { username:..., passHash:... }
* Login - Public
POST - /users/auth - { username:..., passHash: ... }
* Check own profile - Private
GET - /users/profile
* Check an user's profile - Public
GET - /users/profile/:id
* Update profile - Private
POST - /users/update - { stuff to update }
Collections
* Create - Private
POST - /collections/create - { name:..., isPrivate:boolean }
* View - Private
GET - /collections/view/:id
* Update - Private
POST - /collections/update/:id - { collectionName:..., isPrivate:... }
* Add to collection - Private
POST - /collections/add
* Remove from collection - Private
POST - /collections/remove/:id
* Delete - Private
DELETE - /collections/delete/:id
Comments
* Create - Private
POST - /comments/create - { title:..., content:..., movieId:... }
* Delete - Private
DELETE - /comments/delete/:id
Movies
* View one - Public
GET - /movies/view/:id
* View some - Public
GET - /movies/view?page=...&size=...&genres=... - page=2&size=10&genres=action,comedy will select the movies with those two genres and return a slice with the 10th to the 20th from the matches