Skip to content

Commit 308f53f

Browse files
committed
fixed top-level
1 parent ef1a953 commit 308f53f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

graph/patterns/longRunningOperations.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ heuristics:
110110
A client wants to provision a new database
111111

112112
```
113-
POST https://graph.microsoft.com/v1.0/databases/
113+
POST https://graph.microsoft.com/v1.0/storage/databases/
114114
115115
{
116116
"id": "db1",
@@ -123,7 +123,7 @@ Content-Location header and status property in the response payload.
123123

124124
```
125125
HTTP/1.1 201 Created
126-
Content-Location: https://graph.microsoft.com/v1.0/databases/db1
126+
Content-Location: https://graph.microsoft.com/v1.0/storage/databases/db1
127127
128128
{
129129
"id": "db1",
@@ -134,7 +134,7 @@ Content-Location: https://graph.microsoft.com/v1.0/databases/db1
134134
The client waits for a period of time then invokes another request to try to get the database status.
135135

136136
```
137-
GET https://graph.microsoft.com/v1.0/databases/db1
137+
GET https://graph.microsoft.com/v1.0/storage/databases/db1
138138
139139
HTTP/1.1 200 Ok
140140
{
@@ -150,7 +150,7 @@ HTTP/1.1 200 Ok
150150
A client wants to cancel provisioning of a new database
151151

152152
```
153-
DELETE https://graph.microsoft.com/v1.0/databases/db1
153+
DELETE https://graph.microsoft.com/v1.0/storage/databases/db1
154154
155155
```
156156

@@ -160,7 +160,7 @@ Content-Location header and status property in the response payload.
160160

161161
```
162162
HTTP/1.1 202 Accepted
163-
Content-Location: https://graph.microsoft.com/v1.0/databases/db1
163+
Content-Location: https://graph.microsoft.com/v1.0/storage/databases/db1
164164
165165
{
166166
"id": "db1",
@@ -171,14 +171,14 @@ Content-Location: https://graph.microsoft.com/v1.0/databases/db1
171171
The client waits for a period of time then invokes another request to try to get the deletion status.
172172

173173
```
174-
GET https://graph.microsoft.com/v1.0/databases/db1
174+
GET https://graph.microsoft.com/v1.0/storage/db1
175175
176176
HTTP/1.1 404 Not Found
177177
```
178178
### Create a new resource using the Stepwise Operation
179179

180180
```
181-
POST https://graph.microsoft.com/v1.0/databases/
181+
POST https://graph.microsoft.com/v1.0/storage/databases/
182182
183183
{
184184
"id": "db1",
@@ -191,15 +191,15 @@ the Location header with an operation resource for further polling.
191191
```
192192
HTTP/1.1 202 Accepted
193193
194-
Location: https://graph.microsoft.com/v1.0/databases/operations/123
194+
Location: https://graph.microsoft.com/v1.0/storage/operations/123
195195
196196
```
197197

198198
### Poll on a Stepwise Operation
199199

200200
```
201201
202-
GET https://graph.microsoft.com/v1.0/operations/123
202+
GET https://graph.microsoft.com/v1.0/storage/operations/123
203203
```
204204

205205
The server responds that results are still not ready and optionally provides a
@@ -218,7 +218,7 @@ The client waits the recommended 30 seconds and then invokes another request to
218218
the results of the operation.
219219

220220
```
221-
GET https://graph.microsoft.com/v1.0/operations/123
221+
GET https://graph.microsoft.com/v1.0/storage/operations/123
222222
```
223223

224224

@@ -232,6 +232,6 @@ HTTP/1.1 200 OK
232232
"createdDateTime": "2015-06-19T12-01-03.45Z",
233233
"lastActionDateTime": "2015-06-19T12-06-03.0024Z",
234234
"status": "succeeded",
235-
"resourceLocation": "https://graph.microsoft.com/v1.0/databases/db1"
235+
"resourceLocation": "https://graph.microsoft.com/v1.0/storage/databases/db1"
236236
}
237237
```

0 commit comments

Comments
 (0)