-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.json
35 lines (35 loc) · 981 Bytes
/
api.json
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
[
{
"routes": {
"GET /users": {
"responseCode": 200,
"responseData": {
"users": [
{"id": 1, "name": "John Doe"},
{"id": 2, "name": "Jane Smith"}
]
}
},
"POST /users": {
"responseCode": 201,
"responseData": {"message": "User created successfully"},
"token": "your_secret_token"
},
"GET /profile": {
"responseCode": 200,
"responseData": {"username": "johndoe"},
"token": "another_secret_token"
},
"GET /products": {
"responseCode": 200,
"responseFile": "/sample_files/products.json",
"token": "your_token"
},
"PUT /products/123": {
"responseCode": 200,
"responseData": {"message": "Product updated successfully"},
"token": "your_token"
}
}
}
]