-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamples.http
89 lines (71 loc) · 1.91 KB
/
examples.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@baseUrl = http://localhost:3001
###
# Root Test
GET {{baseUrl}}/ HTTP/1.1
###
GET {{baseUrl}}/?name=foo HTTP/1.1
# Extract Test
###
POST {{baseUrl}}/extract?property=name HTTP/1.1
content-type: application/json
[
{
"id": "1954bab361a145d6b828c3456f9d4592",
"name": "PRISM ERP - Report Admin",
"description": "Grants report administrator access to the PRISM ERP system."
},
{
"id": "69a487be846f458caa6b5549a38defca",
"name": "PRISM ERP - User Access",
"description": "Grants user access to the PRISM ERP system"
}
]
###
POST {{baseUrl}}/addRow?value="test1" HTTP/1.1
content-type: application/json
[
"PRISM ERP - Report Admin",
"PRISM ERP - User Access"
]
###
POST {{baseUrl}}/addRow?value=%7B%22id%22%3A%22abcd%22,%22name%22%3A%22foo%22%7D HTTP/1.1
content-type: application/json
[
{
"id": "1954bab361a145d6b828c3456f9d4592",
"name": "PRISM ERP - Report Admin",
"description": "Grants report administrator access to the PRISM ERP system."
},
{
"id": "69a487be846f458caa6b5549a38defca",
"name": "PRISM ERP - User Access",
"description": "Grants user access to the PRISM ERP system"
}
]
###
POST {{baseUrl}}/addRow?value=%7B%22id%22%3A%22abcd%22,%22name%22%3A%22foo%22%7D HTTP/1.1
content-type: application/json
###
POST {{baseUrl}}/addRow?value=%7B%22id%22%3A%22abcd%22,%22name%22%3A%22foo%22%7D HTTP/1.1
content-type: application/json
[]
###
POST {{baseUrl}}/split?property=test&separator=%0A HTTP/1.1
content-type: application/json
{
"test": "a\nb\nc"
}
###
POST {{baseUrl}}/tidyjs/map?mapFn=x => (x.test) HTTP/1.1
content-type: application/json
[{
"test": "a\nb\nc"
}]
HTTP/1.1 200 - OK
x-powered-by: Express
content-type: application/json; charset=utf-8
content-length: 11
etag: W/"b-JyuzRQaFd9Agpe4RB3xxXMimRnw"
date: Wed, 02 Oct 2024 09:22:44 GMT
connection: keep-alive
keep-alive: timeout=120