-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrest.http
49 lines (40 loc) · 1.73 KB
/
rest.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
# REST Client tests (using VSCode https://open-vsx.org/extension/humao/rest-client)
# https://blog.bitsrc.io/vs-codes-rest-client-plugin-is-all-you-need-to-make-api-calls-e9e95fcfd85a
# Set the cursor in a request and press Cmd+Alt+R on macOS
#
@baseUrl = http://dinamizadorlocal.test/api
#@baseUrl = https://dinamizadorlocal.com/api
@token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9mb2Uuc29wb3J0dGVjLmVzXC9hcGlcL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTc5MDgxMjk4LCJuYmYiOjE1NzkwODEyOTgsImp0aSI6IlRqWTdxRlR3c3NuejU4bHQiLCJzdWIiOiJhZmlsaWFkbzJAZ21haWwuY29tIiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.-IyyIduQm4EThfeRnJXiGEmhwAc-fB_9tf_Ok7s48zQ
### Active locations
GET {{baseUrl}}/locations HTTP/1.1
accept: application/json
content-type: application/json
### Categories
GET {{baseUrl}}/categories HTTP/1.1
accept: application/json
content-type: application/json
### Activities
GET {{baseUrl}}/activities HTTP/1.1
accept: application/json
content-type: application/json
## Stores
### Read stores by location
GET {{baseUrl}}/stores/location/3270 HTTP/1.1
accept: application/json
content-type: application/json
### Filter stores by commercial_name
GET {{baseUrl}}/stores/location/3270?commercial_name=air?seed_id=1&page=1 HTTP/1.1
accept: application/json
content-type: application/json
### Filter stores by category_id
GET {{baseUrl}}/stores/location/3270?category_id=4&seed_id=1&page=1 HTTP/1.1
accept: application/json
content-type: application/json
### sort by commercial_name
GET {{baseUrl}}/stores/location/3270?category_id=4&sort=asc&page=1 HTTP/1.1
accept: application/json
content-type: application/json
### Get a storey by id
GET {{baseUrl}}/stores/1 HTTP/1.1
accept: application/json
content-type: application/json