mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
Merge pull request #6138 from hashicorp/docs-fix-data-flag
--payload -> --data for curl; consistent @payload
This commit is contained in:
@@ -213,7 +213,7 @@ The table below shows this endpoint's support for
|
||||
```text
|
||||
$ curl \
|
||||
--request POST \
|
||||
--data @my-job.json \
|
||||
--data @payload.json \
|
||||
https://localhost:4646/v1/jobs
|
||||
```
|
||||
|
||||
@@ -269,7 +269,7 @@ The table below shows this endpoint's support for
|
||||
```text
|
||||
$ curl \
|
||||
--request POST \
|
||||
--data '{"Canonicalize": true, "JobHCL": "job \"my-job\" {}"}' \
|
||||
--data @payload.json \
|
||||
https://localhost:4646/v1/jobs/parse
|
||||
```
|
||||
|
||||
@@ -1256,7 +1256,7 @@ The table below shows this endpoint's support for
|
||||
```text
|
||||
$ curl \
|
||||
--request POST \
|
||||
--payload @payload.json \
|
||||
--data @payload.json \
|
||||
https://localhost:4646/v1/job/my-job/dispatch
|
||||
```
|
||||
|
||||
@@ -1316,7 +1316,7 @@ The table below shows this endpoint's support for
|
||||
```text
|
||||
$ curl \
|
||||
--request POST \
|
||||
--payload @payload.json \
|
||||
--data @payload.json \
|
||||
https://localhost:4646/v1/job/my-job/revert
|
||||
```
|
||||
|
||||
@@ -1372,7 +1372,7 @@ The table below shows this endpoint's support for
|
||||
```text
|
||||
$ curl \
|
||||
--request POST \
|
||||
--payload @payload.json \
|
||||
--data @payload.json \
|
||||
https://localhost:4646/v1/job/my-job/stable
|
||||
```
|
||||
|
||||
@@ -1492,7 +1492,7 @@ The table below shows this endpoint's support for
|
||||
```text
|
||||
$ curl \
|
||||
--request POST \
|
||||
--payload @payload.json \
|
||||
--data @payload.json \
|
||||
https://localhost:4646/v1/job/my-job/plan
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user