-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtester.http
50 lines (42 loc) · 1.14 KB
/
tester.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
###
POST http://localhost:4840/soundy/auth/register
Content-Type: application/json
{
"username": "admin",
"password": "admin",
"role": "ROLE_ADMIN"
}
###
POST http://localhost:4840/soundy/auth/register
Content-Type: application/json
{
"username": "user",
"password": "user",
"role": "ROLE_USER"
}
###
###
GET http://localhost:4840/soundy/auth/gentoken
Content-Type: application/json
{
"username": "user",
"password": "user"
}
###
###
GET http://localhost:4840/soundy/tracks/top?n=10
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiUk9MRV9VU0VSIiwiaWQiOjkzLCJzdWIiOiJ1c2VyIiwiaWF0IjoxNzI3Mzg1OTA2LCJleHAiOjE3Mjc1Mjk5MDZ9.EojD3sM0mDz97Gzt2BUeflbl0okcIb6tBUdGIzKJ12A
###
###
GET http://localhost:4840/soundy/artist/
#Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcnQiLCJpYXQiOjE3MjY3NzEyMzd9.vZQaHJnveY3C94JcUN3opQ4CfgWOUEThipUw6uWn3CE
###
POST http://localhost:4840/soundy/tracks/
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcnQiLCJpYXQiOjE3MjY3NzEzNzJ9.5hMrX00bAw8svThBfTBk0nPw0jnn181kLhoRym0rcnM
{
"title": "Who was in paris",
"explicit": false,
"premium": false,
"artists": []
}