Skip to content

Commit b9607af

Browse files
committed
examples: use the multipart/form-data endpoint, default org
1 parent c9c53fe commit b9607af

File tree

59 files changed

+93
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+93
-93
lines changed

examples/ansible/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ cd target && zip -r payload.zip ./*
2727
3. Send the payload to the server:
2828

2929
```
30-
curl -v -H "Content-Type: application/octet-stream" --data-binary @payload.zip http://localhost:8001/api/v1/process
30+
curl -v -u username -F archive=@payload.zip http://localhost:8001/api/v1/process
3131
```

examples/ansible/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_docker/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_dynamic_inventory/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ cd target && zip -r payload.zip ./*
2727
3. Send the payload to the server:
2828

2929
```
30-
curl -v -H "Content-Type: application/octet-stream" --data-binary @payload.zip http://localhost:8001/api/v1/process
30+
curl -v -u username -F archive=@payload.zip http://localhost:8001/api/v1/process
3131
```

examples/ansible_dynamic_inventory/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook inventory.sh target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_form/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_limit/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ cd target && zip -r payload.zip ./*
2727
3. Send the payload to the server:
2828

2929
```
30-
curl -v -H "Content-Type: application/octet-stream" --data-binary @payload.zip http://localhost:8001/api/v1/process
30+
curl -v -u username -F archive=@payload.zip http://localhost:8001/api/v1/process
3131
```

examples/ansible_limit/concord.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ flows:
1717
ansible_connection: "local"
1818
extraVars:
1919
greetings: "Hi there!"
20-
limit: @playbook/hello.limit
20+
limit: "@playbook/hello.limit"

examples/ansible_limit/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_oneops_replace/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_project/README.md

+17-31
Original file line numberDiff line numberDiff line change
@@ -32,61 +32,44 @@ settings to add a new public key.
3232
Before we create our own user, all requests are perfomed using the default admin API key.
3333
This example assumes that the `ansible` template is already uploaded to the server.
3434

35-
### 1. Create a new Concord project
36-
37-
We are going to create a new project using the `ansible` project template. The `ansible` template
38-
will automatically add the necessary boilerplate - a workflow process definition to run our playbook
39-
and necessary runtime dependencies.
40-
41-
```
42-
curl -v \
43-
-H "Content-Type: application/json" \
44-
-H "Authorization: auBy4eDWrKWsyhiDp3AQiw" \
45-
-d '{ "name": "myProject", "cfg": { "template": "ansible" } }' \
46-
http://localhost:8001/api/v1/project
47-
```
48-
49-
```json
50-
{
51-
"ok": true
52-
}
53-
```
54-
55-
### 2. Create a new repository key
35+
### 1. Create a new repository key
5636

5737
Please refer to the [Generate a new key pair](http://concord.walmart.com/docs/api/secret.html#generate-a-new-key-pair) document.
5838
Use `mySecret` as a name of the key pair, it will be used on the next step.
5939

60-
### 3. Add a repository
40+
### 2. Create a new Concord project
41+
42+
We are going to create a new project using the `ansible` project template. The `ansible` template
43+
will automatically add the necessary boilerplate - a workflow process definition to run our playbook
44+
and necessary runtime dependencies.
6145

6246
```
6347
curl -v \
6448
-H "Content-Type: application/json" \
6549
-H "Authorization: auBy4eDWrKWsyhiDp3AQiw" \
66-
-d '{ "name": "myRepo", "url": "[email protected]:my/repo.git", "secret": "mySecret" }' \
67-
http://localhost:8001/api/v1/project/myProject/repository
50+
-d '{ "name": "myProject", "cfg": { "template": "ansible" }, "repositories": { "myRepo": {"url": "[email protected]:my/repo.git", "secret": "mySecret" } } }' \
51+
http://localhost:8001/api/v1/org/Default/project
6852
```
6953
7054
The `secret` parameters is the name of the key created on the step 2.
7155
7256
```json
7357
{
74-
"ok": true
58+
"ok": true
7559
}
7660
```
7761

62+
7863
### 4. Add a new user (optional)
7964

8065
```
8166
curl -v \
8267
-H "Content-Type: application/json" \
8368
-H "Authorization: auBy4eDWrKWsyhiDp3AQiw" \
84-
-d '{ "username": "myUser", "permissions": [ "process:*:myProject" ] }' \
69+
-d '{ "username": "myUser" }' \
8570
http://localhost:8001/api/v1/user
8671
```
8772

88-
Check [the permissions description](http://concord.walmart.com/docs/api/security.md#permissions) in the documentation.
89-
9073
```json
9174
{
9275
"ok": true,
@@ -96,13 +79,13 @@ Check [the permissions description](http://concord.walmart.com/docs/api/security
9679

9780
### 5. Create an API key (optional)
9881

99-
Use the `id` value of the user created in the previous step.
82+
Use the `username` value of the user created in the previous step.
10083

10184
```
10285
curl -v \
10386
-H "Content-Type: application/json" \
10487
-H "Authorization: auBy4eDWrKWsyhiDp3AQiw" \
105-
-d '{ "userId": "9458c42e-db11-11e6-8356-07c51e4e3ef5" }' \
88+
-d '{ "username": "myUser" }' \
10689
http://localhost:8001/api/v1/apikey
10790
```
10891

@@ -143,9 +126,12 @@ Make a call:
143126
```
144127
curl -v \
145128
-H "Authorization: auBy4eDWrKWsyhiDp3AQiw" \
129+
-F org=Default \
130+
-F project=myProject \
131+
-F repo=myRepo \
146132
147133
148-
http://localhost:8001/api/v1/process/myProject:myRepo
134+
http://localhost:8001/api/v1/process
149135
```
150136

151137
```json

examples/ansible_remote/run.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
SERVER_ADDR="$1"
4+
5+
rm -rf target && mkdir target
6+
cp -R concord.yml playbook target/
7+
8+
cd target && zip -r payload.zip ./* > /dev/null && cd ..
9+
10+
read -p "Username: " CURL_USER
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_retry/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/ansible_vault/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml playbook target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/boo/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml example.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/context_injection/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml tasks target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/docker/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ cd target && zip -r payload.zip ./*
2727
3. Send the payload to the server:
2828

2929
```
30-
curl -v -H "Content-Type: application/octet-stream" --data-binary @payload.zip http://localhost:8001/api/v1/process
30+
curl -v -u username -F archive=@payload.zip http://localhost:8001/api/v1/process
3131
```

examples/docker/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R playbook concord.yml ansible.cfg inventory.ini target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/docker_simple/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/dynamic_forms/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R forms concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/dynamic_tasks/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml tasks target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/error_handling/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/external_script/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml example.js target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/fork/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/fork_join/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/form_and_long_process/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/forms/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/forms_branding/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml forms target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/forms_override/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/forms_wizard/run.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ cp -R concord.yml forms target/
77

88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

10-
curl -H "Authorization: auBy4eDWrKWsyhiDp3AQiw" -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
10+
read -p "Username: " CURL_USER
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/groovy/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/groovy_rest/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/hello_initiator/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/hello_world/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/hello_world2/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml _main.json target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/in_variables/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ cp -R concord.yml target/
88
cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
read -p "Username: " CURL_USER
11-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
11+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/inventory/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
1. Create an inventory:
66
```
7-
./create_inventory.sh server.dev.concord.devtools.prod.walmart.com:8001
7+
./create_inventory.sh localhost:8001
88
```
99

1010
2. Start the process:
1111
```
12-
./run.sh server.dev.concord.devtools.prod.walmart.com:8001
12+
./run.sh localhost:8001
1313
```
1414

1515
3. Check the logs in the Console

examples/inventory/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
echo "Sending the payload..."
1111
read -p "Username: " CURL_USER
12-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
12+
curl -u ${CURL_USER} -F archive=@target/payload.zip http://${SERVER_ADDR}/api/v1/process

examples/inventory_lookup/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ cd target && zip -r payload.zip ./* > /dev/null && cd ..
99

1010
echo "Sending the payload..."
1111
read -p "Username: " CURL_USER
12-
curl -u ${CURL_USER} -H "Content-Type: application/octet-stream" --data-binary @target/payload.zip http://${SERVER_ADDR}/api/v1/process
12+
curl -u ${CURL_USER} -F archive= @target/payload.zip http://${SERVER_ADDR}/api/v1/process

0 commit comments

Comments
 (0)