-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreq.http
46 lines (25 loc) · 967 Bytes
/
req.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
############################################################
# 0.1. Config
@PORT={{$dotenv NEXTJS_PORT}}
@LOCAL_ADDR=http://localhost:{{PORT}}
@API_URL={{LOCAL_ADDR}}/api
############################################################
# 0.2. Misc
### 0.2.1. Health
GET http://localhost:3000/api/health
### 0.2.2. Reset DB
POST {{API_URL}}/reset
############################################################
# 1. Pattern Search
@PATTERN_SEARCH=pattern-search
### 1.1. Sequential
@SEQUENTIAL_PATTERN=pdppddcp
GET {{API_URL}}/{{PATTERN_SEARCH}}/sequential/{{SEQUENTIAL_PATTERN}}
## 1.2. Stones
@BLACK_STONES_EQUALS=qcpcoc
@WHITE_STONES_EQUALS=odpdqd
### 1.2.1 Stones Contains
GET {{API_URL}}/{{PATTERN_SEARCH}}/stones/{{BLACK_STONES_EQUALS}}/{{WHITE_STONES_EQUALS}}
### 1.2.2 Stones Equals
GET {{API_URL}}/{{PATTERN_SEARCH}}/stones/{{BLACK_STONES_EQUALS}}/{{WHITE_STONES_EQUALS}}?equals=true
############################################################