POST http://localhost:3001/api/users/sign-up HTTP/1.1 Content-Type: application/json
- {
- "username": "test3", "password": "123456", "password_confirmation": "123456"
}
### POST http://localhost:3001/api/users/log-in HTTP/1.1 Content-Type: application/json
- {
- "username": "julio", "password": "123456"
}
### POST http://localhost:3001/api/movies/create HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXZpZXdzIjpbXSwid2F0Y2hlZF9tb3ZpZXMiOltdLCJmb2xsb3dlcnMiOltdLCJmb2xsb3dpbmciOltdLCJ3YXRjaF9saXN0IjpbXSwiZmF2b3JpdGVzIjpbXSwibGlzdHMiOltdLCJfaWQiOiI1ZjIzMDQzMWU3ZTFhODA4OTBiZWMwMjAiLCJ1c2VybmFtZSI6Imp1bGlvIiwicGFzc3dvcmQiOiIkMmEkMTAkUlN2Qk5yLjBEcFdFR2JRMnoySk8zLmFSUHV2MXVlZm9UalAzME5NaXBGRzBqb2V5M3phVWEiLCJfX3YiOjAsImlhdCI6MTU5NjI5NjY0NH0.8CK3Jmi6ZLySykw0w6AeQc9nJgLJDzmiR_u9iY9pm-I
- {
- "title": "Phantom Thread", "year": "2017", "synopsis": "YES", "poster": "urlurlyrl"
}
// 5f230431e7e1a80890bec020 IS USER 'JULIO' ID // TO CREATE A REVIEW DO MOVIEID/USERID/CREATE // ID FOR ARRIVAL IS 5f2595df30a1180fb5565cc8 // ID FOR CAROL IS 5f2598f830a1180fb5565cca // ID FOR PHANTOM THREAD IS 5f25990730a1180fb5565ccb ### POST http://localhost:3001/api/reviews/5f25990730a1180fb5565ccb/5f230431e7e1a80890bec020/create HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXZpZXdzIjpbXSwid2F0Y2hlZF9tb3ZpZXMiOltdLCJmb2xsb3dlcnMiOltdLCJmb2xsb3dpbmciOltdLCJ3YXRjaF9saXN0IjpbXSwiZmF2b3JpdGVzIjpbXSwibGlzdHMiOltdLCJfaWQiOiI1ZjIzMDQzMWU3ZTFhODA4OTBiZWMwMjAiLCJ1c2VybmFtZSI6Imp1bGlvIiwicGFzc3dvcmQiOiIkMmEkMTAkUlN2Qk5yLjBEcFdFR2JRMnoySk8zLmFSUHV2MXVlZm9UalAzME5NaXBGRzBqb2V5M3phVWEiLCJfX3YiOjAsImlhdCI6MTU5NjI5NjY0NH0.8CK3Jmi6ZLySykw0w6AeQc9nJgLJDzmiR_u9iY9pm-I
- {
- "content": "A GENIUS", "rating":"5"
}
### GET http://localhost:3001/api/reviews/latest?amount=10 HTTP/1.1 Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXZpZXdzIjpbXSwid2F0Y2hlZF9tb3ZpZXMiOltdLCJmb2xsb3dlcnMiOltdLCJmb2xsb3dpbmciOltdLCJ3YXRjaF9saXN0IjpbXSwiZmF2b3JpdGVzIjpbXSwibGlzdHMiOltdLCJfaWQiOiI1ZjIzMDQzMWU3ZTFhODA4OTBiZWMwMjAiLCJ1c2VybmFtZSI6Imp1bGlvIiwicGFzc3dvcmQiOiIkMmEkMTAkUlN2Qk5yLjBEcFdFR2JRMnoySk8zLmFSUHV2MXVlZm9UalAzME5NaXBGRzBqb2V5M3phVWEiLCJfX3YiOjAsImlhdCI6MTU5NjI5NjY0NH0.8CK3Jmi6ZLySykw0w6AeQc9nJgLJDzmiR_u9iY9pm-I
### GET http://localhost:3001/api/users/5f410ee67bcd0d04a6d5d192 HTTP/1.1
### GET http://localhost:3001/api/reviews/5f2adf2d8b782d089ac4e9ce HTTP/1.1
### GET http://localhost:3001/api/reviews/5f230431e7e1a80890bec020/friends HTTP/1.1
### GET http://localhost:3001/api/movie-lists/5f36f0d4f534f1030a23a24f/friends HTTP/1.1 Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXZpZXdzIjpbIjVmM2IxZDRmMWM2MzNmMDMyOGQ3NjU5ZiIsIjVmM2IyNzlhNTk2Yjg1MDQ3MTkyOWRjMSIsIjVmM2IyN2IzNTk2Yjg1MDQ3MTkyOWRjMyJdLCJ3YXRjaGVkX21vdmllcyI6WyI1ZjNiMWQ0OTFjNjMzZjAzMjhkNzY1OWUiLCI1ZjNiMjc4YjU5NmI4NTA0NzE5MjlkYzAiLCI1ZjNiMjdhMzU5NmI4NTA0NzE5MjlkYzIiXSwiZm9sbG93ZXJzIjpbIjVmMjMwNDMxZTdlMWE4MDg5MGJlYzAyMCJdLCJmb2xsb3dpbmciOltdLCJ3YXRjaF9saXN0IjpbXSwiZmF2b3JpdGVzIjpbXSwibGlzdHMiOltdLCJsaWtlZF9tb3ZpZXMiOlsiNWYzYjI3OGI1OTZiODUwNDcxOTI5ZGMwIiwiNWYzYjI3YTM1OTZiODUwNDcxOTI5ZGMyIl0sImxpa2VkX3Jldmlld3MiOltdLCJfaWQiOiI1ZjM2ZjBkNGY1MzRmMTAzMGEyM2EyNGYiLCJ1c2VybmFtZSI6InRlc3QxIiwicGFzc3dvcmQiOiIkMmEkMTAkZWlLVXF5S1lLQURvMFJ1UEtHWTdXZUROVjRMUzNrWkIzaHJ2dVVNYkZtSk5DQzJDcENmZUsiLCJfX3YiOjAsImlhdCI6MTU5Nzc1NzQ0NX0.lTlJY9V8K_Y9VyEtsFFbFxlxlm9ofU-81vREpdQmAwA