-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·13 lines (10 loc) · 1.09 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
curl -i -H "Content-Type: application/json" -X POST -d '{"name":"test","email":"[email protected]"}' http://127.0.0.1:5000/manage/api/v1.0/users
curl -i -H "Content-Type: application/json" -X POST -d '{"name":"abc","email":"[email protected]"}' http://127.0.0.1:5000/manage/api/v1.0/users
curl -i -H "Content-Type: application/json" -X POST -d '{"name":"def","email":"[email protected]"}' http://127.0.0.1:5000/manage/api/v1.0/users
curl -i -H "Content-Type: application/json" -X POST -d '{"name":"group_abc"}' http://127.0.0.1:5000/manage/api/v1.0/groups
curl -i -H "Content-Type: application/json" -X POST -d '{"name":"group_def"}' http://127.0.0.1:5000/manage/api/v1.0/groups
curl -i -H "Content-Type: application/json" -X POST -d '{"name":"group_ghi"}' http://127.0.0.1:5000/manage/api/v1.0/groups
curl -i -H "Content-Type: application/json" -X POST http://127.0.0.1:5000/manage/api/v1.0/user_group/2/2
curl -i -H "Content-Type: application/json" -X POST http://127.0.0.1:5000/manage/api/v1.0/user_group/3/2
curl -i -H "Content-Type: application/json" -X POST http://127.0.0.1:5000/manage/api/v1.0/user_group/3/3