-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurlTests.sh
21 lines (7 loc) · 1.01 KB
/
curlTests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
curl -k -X POST -H "Content-Type: application/json" -d "{\"email\":\"[email protected]\", \"password\":\"12345678\"}" https:///mint20-loopback4:3000/users/login
curl -k -H "Content-Type: application/json" -H "Authorization: Bearer XXX" https:///mint20-loopback4:3000/todos
curl -k -H "Content-Type: application/json" -H "Authorization: Bearer XXX" https:///mint20-loopback4:3000/todo-lists
curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Bearer XXX" -d "{\"title\":\"continue tar on shed\", \"isComplete\":false}" https:///mint20-loopback4:3000/todo-lists/101/todos
curl -k -H "Authorization: Bearer XXX" https:///mint20-loopback4:3000/todo-lists/101/todos
curl -k -H "Authorization: Bearer XXX" https:///mint20-loopback4:3000/user/23cbfef0-eef5-4872-9805-f8d51529d655/todos
curl -k -X POST -H "Content-Type: application/json" -H "Authorization: Bearer XXX" -d "{\"title\":\"paint stairwell\", \"isComplete\":false}" https:///mint20-loopback4:3000/user/23cbfef0-eef5-4872-9805-f8d51529d655/todos