Skip to content

Commit b7b273d

Browse files
authored
Merge pull request #4567 from hhunter-ms/issue_4519
Remove specific port number, replace with placeholder
2 parents 178e0c8 + ac358cb commit b7b273d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

daprdocs/content/en/reference/api/jobs_api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ With the jobs API, you can schedule jobs and tasks in the future.
2020
Schedule a job with a name. Jobs are scheduled based on the clock of the server where the Scheduler service is running. The timestamp is not converted to UTC. You can provide the timezone with the timestamp in RFC3339 format to specify which timezone you'd like the job to adhere to. If no timezone is provided, the server's local time is used.
2121

2222
```
23-
POST http://localhost:3500/v1.0-alpha1/jobs/<name>
23+
POST http://localhost:<daprPort>/v1.0-alpha1/jobs/<name>
2424
```
2525

2626
### URL parameters
@@ -100,7 +100,7 @@ $ curl -X POST \
100100
Get a job from its name.
101101

102102
```
103-
GET http://localhost:3500/v1.0-alpha1/jobs/<name>
103+
GET http://localhost:<daprPort>/v1.0-alpha1/jobs/<name>
104104
```
105105

106106
### URL parameters
@@ -138,7 +138,7 @@ $ curl -X GET http://localhost:3500/v1.0-alpha1/jobs/jobforjabba -H "Content-Typ
138138
Delete a named job.
139139

140140
```
141-
DELETE http://localhost:3500/v1.0-alpha1/jobs/<name>
141+
DELETE http://localhost:<daprPort>/v1.0-alpha1/jobs/<name>
142142
```
143143

144144
### URL parameters

daprdocs/content/en/reference/api/workflow_api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Dapr provides users with the ability to interact with workflows through its buil
1313
Start a workflow instance with the given name and optionally, an instance ID.
1414

1515
```
16-
POST http://localhost:3500/v1.0/workflows/<workflowComponentName>/<workflowName>/start[?instanceID=<instanceID>]
16+
POST http://localhost:<daprPort>/v1.0/workflows/<workflowComponentName>/<workflowName>/start[?instanceID=<instanceID>]
1717
```
1818

1919
Note that workflow instance IDs can only contain alphanumeric characters, underscores, and dashes.
@@ -53,7 +53,7 @@ The API call will provide a response similar to this:
5353
Terminate a running workflow instance with the given name and instance ID.
5454

5555
```
56-
POST http://localhost:3500/v1.0/workflows/<workflowComponentName>/<instanceId>/terminate
56+
POST http://localhost:<daprPort>/v1.0/workflows/<workflowComponentName>/<instanceId>/terminate
5757
```
5858

5959
{{% alert title="Note" color="primary" %}}
@@ -87,7 +87,7 @@ This API does not return any content.
8787
For workflow components that support subscribing to external events, such as the Dapr Workflow engine, you can use the following "raise event" API to deliver a named event to a specific workflow instance.
8888

8989
```
90-
POST http://localhost:3500/v1.0/workflows/<workflowComponentName>/<instanceID>/raiseEvent/<eventName>
90+
POST http://localhost:<daprPort>/v1.0/workflows/<workflowComponentName>/<instanceID>/raiseEvent/<eventName>
9191
```
9292

9393
{{% alert title="Note" color="primary" %}}
@@ -120,7 +120,7 @@ None.
120120
Pause a running workflow instance.
121121

122122
```
123-
POST http://localhost:3500/v1.0/workflows/<workflowComponentName>/<instanceId>/pause
123+
POST http://localhost:<daprPort>/v1.0/workflows/<workflowComponentName>/<instanceId>/pause
124124
```
125125

126126
### URL parameters
@@ -147,7 +147,7 @@ None.
147147
Resume a paused workflow instance.
148148

149149
```
150-
POST http://localhost:3500/v1.0/workflows/<workflowComponentName>/<instanceId>/resume
150+
POST http://localhost:<daprPort>/v1.0/workflows/<workflowComponentName>/<instanceId>/resume
151151
```
152152

153153
### URL parameters
@@ -174,7 +174,7 @@ None.
174174
Purge the workflow state from your state store with the workflow's instance ID.
175175

176176
```
177-
POST http://localhost:3500/v1.0/workflows/<workflowComponentName>/<instanceId>/purge
177+
POST http://localhost:<daprPort>/v1.0/workflows/<workflowComponentName>/<instanceId>/purge
178178
```
179179

180180
{{% alert title="Note" color="primary" %}}
@@ -205,7 +205,7 @@ None.
205205
Get information about a given workflow instance.
206206

207207
```
208-
GET http://localhost:3500/v1.0/workflows/<workflowComponentName>/<instanceId>
208+
GET http://localhost:<daprPort>/v1.0/workflows/<workflowComponentName>/<instanceId>
209209
```
210210

211211
### URL parameters

0 commit comments

Comments
 (0)