-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-requests.http
48 lines (36 loc) · 1.07 KB
/
api-requests.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
# For a quick start check out our HTTP Requests collection (Tools|HTTP Client|Open HTTP Requests Collection).
#
# Following HTTP Request Live Templates are available:
# * 'gtrp' and 'gtr' create a GET request with or without query parameters;
# * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
# * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
### Sign up
POST http://localhost:8080/api/auth/signup
Content-Type: application/json
{
"email": "[email protected]",
"password": "admin001",
"role": [
"string"
],
"username": "admin001"
}
### Sign in
POST http://localhost:8080/api/auth/signin
Content-Type: application/json
{
"password": "admin001",
"username": "admin001"
}
###
GET http://localhost:8080/api/v1/notes
Accepts: application/json
Authorization: Bearer <--token here-->
###
GET http://localhost:8080/api/v1/name/Bangla
Accepts: application/json
Authorization: Bearer <--token here-->
###
GET http://localhost:8080/api/v1/name/bangladesh
Accepts: application/json
###