Skip to content

Commit c995fab

Browse files
committed
updated to Graph URLs
1 parent 65dc630 commit c995fab

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

graph/patterns/longRunningOperations.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ heuristics:
105105
A client wants to provision a new database
106106

107107
```
108-
POST https://api.contoso.com/v1.0/databases/
108+
POST https://graph.microsoft.com/v1.0/databases/
109109
110110
{
111111
"id": "db1",
@@ -118,7 +118,7 @@ Operation-Location header and status property in the response payload.
118118

119119
```
120120
HTTP/1.1 201 Created
121-
Content-Location: https://api.contoso.com/v1.0/databases/db1
121+
Content-Location: https:////graph.microsoft.com/v1.0/databases/db1
122122
123123
{
124124
"id": "db1",
@@ -130,7 +130,7 @@ Content-Location: https://api.contoso.com/v1.0/databases/db1
130130
### Creating a new resource using Stepwise Operation:
131131

132132
```
133-
POST https://api.contoso.com/v1.0/databases/
133+
POST https://graph.microsoft.com/v1.0/databases/
134134
135135
{
136136
"id": "db1",
@@ -143,15 +143,15 @@ the Location header with an operation resource for further polling .
143143
```
144144
HTTP/1.1 202 Accepted
145145
146-
Location: https://api.contoso.com/v1.0/operations/123
146+
Location: https://graph.microsoft.com/v1.0/operations/123
147147
148148
```
149149

150150
### Polling on a Stepwise Operation:
151151

152152
```
153153
154-
GET https://api.contoso.com/v1.0/operations/123
154+
GET https://graph.microsoft.com/v1.0/operations/123
155155
```
156156

157157
Server responds that results are still not ready and optionally provides a
@@ -170,7 +170,7 @@ Client waits the recommended 30 seconds and then invokes another request to get
170170
the results of the operation.
171171

172172
```
173-
GET https://api.contoso.com/v1.0/operations/123
173+
GET https://graph.microsoft.com/v1.0/operations/123
174174
```
175175

176176

@@ -184,6 +184,6 @@ HTTP/1.1 200 OK
184184
"createdDateTime": "2015-06-19T12-01-03.45Z",
185185
"lastActionDateTime": "2015-06-19T12-06-03.0024Z",
186186
"status": "succeeded",
187-
"resourceLocation": "https://api.contoso.com/v1.0/databases/db1"
187+
"resourceLocation": "https://graph.microsoft.com/v1.0/databases/db1"
188188
}
189189
```

0 commit comments

Comments
 (0)