forked from membrane/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequests.sh
More file actions
executable file
·25 lines (17 loc) · 784 Bytes
/
requests.sh
File metadata and controls
executable file
·25 lines (17 loc) · 784 Bytes
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
#!/bin/bash
echo -e "--------- Valid Request ---------"
curl -d @requests/valid.json localhost:2000
echo -e "-------- Too Many Tokens --------"
curl -d @requests/max_tokens.json localhost:2000
echo -e "------- Document Too Large ------"
curl -d @requests/max_size.json localhost:2000
echo -e "-------- Nesting Too Deep -------"
curl -d @requests/max_depth.json localhost:2000
echo -e "-------- String Too Large -------"
curl -d @requests/max_string_length.json localhost:2000
echo -e "--------- Key Too Large ---------"
curl -d @requests/max_key_length.json localhost:2000
echo -e "-------- Object Too Large -------"
curl -d @requests/max_object_size.json localhost:2000
echo -e "-------- Array Too Large --------"
curl -d @requests/max_array_size.json localhost:2000