-
Notifications
You must be signed in to change notification settings - Fork 0
/
org-service-setup.sh
49 lines (44 loc) · 1.04 KB
/
org-service-setup.sh
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
export SERVER_URL=127.0.0.1:8080
curl --location "$SERVER_URL/api/v1/organization/user" \
--header 'Content-Type: application/json' \
--data '{
"username": "jp"
}'
curl --location "$SERVER_URL/api/v1/organization/user" \
--header 'Content-Type: application/json' \
--data '{
"username": "as"
}'
curl --location "$SERVER_URL/api/v1/organization/user" \
--header 'Content-Type: application/json' \
--data '{
"username": "nm"
}'
curl --location "$SERVER_URL/api/v1/organization" \
--header 'Content-Type: application/json' \
--data '{
"id": "a813b5e0-c48c-4eac-94fd-4d1295e5964a",
"name": "Armada-Customer",
"users": [
{
"id": 3,
"username": "nm"
}
]
}'
curl --location "$SERVER_URL/api/v1/organization" \
--header 'Content-Type: application/json' \
--data '{
"id": "3799119b-75bc-4799-ab67-47b5aa06389e",
"name": "Armada",
"users": [
{
"id": 2,
"username": "as"
},
{
"id": 1,
"username": "jp"
}
]
}'