-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibrary_test.http
29 lines (21 loc) · 1.3 KB
/
library_test.http
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
### Add entry to library
POST http://localhost:8080/library
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJUZXN0aW5nVXNlciIsImlzcyI6ImJpYmxpb21hciIsImV4cCI6MTY3NDc0Nzc0N30.8eRugpG-8D6I4pN5KD44ZmY2nc9mUvKuGloHlzYFFbez3dfKT_E0wz2OaTFWkgUlvvKnuhVRfFeZZTw7MYsx9w
{
"topic": "{{topic}}",
"targetCategory": "reading",
"md5": "{{md5}}"
}
### Get user library
GET http://localhost:8080/library
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJUZXN0aW5nVXNlciIsImlzcyI6ImJpYmxpb21hciIsImV4cCI6MTY3NjAxMDEyOH0.o0Pr8ec8K3bc-QqsH4wEK0R_7a_eGbzavq0Y733HMWHQH_LJc9ySLJYgGONyk56B2ubjqn85J0-3pXmmCUKCLg
### Get specific entry
GET http://localhost:8080/library/{{md5}}
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJUZXN0aW5nVXNlciIsImlzcyI6ImJpYmxpb21hciIsImV4cCI6MTY3NjAxMDEyOH0.o0Pr8ec8K3bc-QqsH4wEK0R_7a_eGbzavq0Y733HMWHQH_LJc9ySLJYgGONyk56B2ubjqn85J0-3pXmmCUKCLg
### Remove entry from library
DELETE http://localhost:8080/library/{{md5}}
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJUZXN0aW5nVXNlciIsImlzcyI6ImJpYmxpb21hciIsImV4cCI6MTY3NjAxMDEyOH0.o0Pr8ec8K3bc-QqsH4wEK0R_7a_eGbzavq0Y733HMWHQH_LJc9ySLJYgGONyk56B2ubjqn85J0-3pXmmCUKCLg