|
@ -1,5 +1,7 @@ |
|
|
# Routes |
|
|
# Routes |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
## POST `/register` |
|
|
## POST `/register` |
|
|
|
|
|
|
|
|
### Request type: `application/json` |
|
|
### Request type: `application/json` |
|
@ -13,6 +15,8 @@ |
|
|
- success: `boolean` |
|
|
- success: `boolean` |
|
|
- msg: `string` (if success false) |
|
|
- msg: `string` (if success false) |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
## POST `/user` |
|
|
## POST `/user` |
|
|
|
|
|
|
|
|
### Request type: ``application/json`` |
|
|
### Request type: ``application/json`` |
|
@ -26,6 +30,8 @@ |
|
|
- msg: `string` (if success false) |
|
|
- msg: `string` (if success false) |
|
|
- token: `string` |
|
|
- token: `string` |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
## GET `/search/:query` |
|
|
## GET `/search/:query` |
|
|
|
|
|
|
|
|
### Headers: |
|
|
### Headers: |
|
@ -41,6 +47,8 @@ |
|
|
- poster: `string` |
|
|
- poster: `string` |
|
|
- release: `string` |
|
|
- release: `string` |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
## GET `/movie/:movieId` |
|
|
## GET `/movie/:movieId` |
|
|
|
|
|
|
|
|
### Headers: |
|
|
### Headers: |
|
@ -58,6 +66,7 @@ |
|
|
- watchStatus: `undefined|string` |
|
|
- watchStatus: `undefined|string` |
|
|
- rating: `undefined|string` |
|
|
- rating: `undefined|string` |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
## POST `/movie/:movieId` |
|
|
## POST `/movie/:movieId` |
|
|
|
|
|
|
|
|