mirror of https://github.com/dapr/docs.git
fix job api http reference (#4343)
Signed-off-by: yaron2 <schneider.yaron@live.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
parent
ef0a5b5641
commit
ca61d77c72
|
@ -63,13 +63,11 @@ Entry | Description | Equivalent
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"job": {
|
"data": {
|
||||||
"data": {
|
|
||||||
"@type": "type.googleapis.com/google.protobuf.StringValue",
|
"@type": "type.googleapis.com/google.protobuf.StringValue",
|
||||||
"value": "\"someData\""
|
"value": "\"someData\""
|
||||||
},
|
},
|
||||||
"dueTime": "30s"
|
"dueTime": "30s"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -90,14 +88,12 @@ $ curl -X POST \
|
||||||
http://localhost:3500/v1.0-alpha1/jobs/jobforjabba \
|
http://localhost:3500/v1.0-alpha1/jobs/jobforjabba \
|
||||||
-H "Content-Type: application/json"
|
-H "Content-Type: application/json"
|
||||||
-d '{
|
-d '{
|
||||||
"job": {
|
"data": {
|
||||||
"data": {
|
|
||||||
"@type": "type.googleapis.com/google.protobuf.StringValue",
|
"@type": "type.googleapis.com/google.protobuf.StringValue",
|
||||||
"value": "Running spice"
|
"value": "Running spice"
|
||||||
},
|
},
|
||||||
"schedule": "@every 1m",
|
"schedule": "@every 1m",
|
||||||
"repeats": 5
|
"repeats": 5
|
||||||
}
|
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue