Skip to content

Commit bb5938d

Browse files
authored
Update rest-api.md
1 parent 3992e13 commit bb5938d

File tree

1 file changed

+21
-12
lines changed
  • articles/cognitive-services/language-service/custom-named-entity-recognition/includes/quickstarts

1 file changed

+21
-12
lines changed

articles/cognitive-services/language-service/custom-named-entity-recognition/includes/quickstarts/rest-api.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,14 @@ Use the following URL to create a project and import your tags file. Replace the
7878

7979
### Parameters
8080

81-
Use the following header to authenticate your request.
81+
You need to pass the following parameters with your request.
8282

8383
|Key|Explanation|Value|
8484
|--|--|--|
8585
|`api-version`| The API version used.| `2021-11-01-preview` |
8686

87+
This can be done by adding `?api-version=2021-11-01-preview` to the end of your request url.
88+
8789
### Headers
8890

8991
Use the following header to authenticate your request.
@@ -191,12 +193,13 @@ Use the following URL when creating your API request. Replace the placeholder va
191193
|`{PROJECT-NAME}` | The name for your project. This value is case-sensitive. | `myProject` |
192194

193195
### Parameters
194-
195-
Use the following header to authenticate your request.
196+
You need to pass the following parameters with your request.
196197

197198
|Key|Explanation|Value|
198199
|--|--|--|
199-
|`api-version`| The API version used. | `2021-11-01-preview` |
200+
|`api-version`| The API version used.| `2021-11-01-preview` |
201+
202+
This can be done by adding `?api-version=2021-11-01-preview` to the end of your request url.
200203

201204
### Headers
202205

@@ -225,7 +228,7 @@ Use the following JSON in your request. The model will be named `MyModel` once t
225228
Once you send your API request, you will receive a `202` response indicating success. In the response headers, extract the `location` value. It will be formatted like this:
226229

227230
```rest
228-
{YOUR-ENDPOINT}/language/analyze-text/projects/{YOUR-PROJECT-NAME}/train/jobs/{JOB-ID}
231+
{YOUR-ENDPOINT}/language/analyze-text/projects/{YOUR-PROJECT-NAME}/train/jobs/{JOB-ID}?api-version=xxxx-xx-xx-xxxxxxx
229232
```
230233

231234
`JOB-ID` is used to identify your request, since this operation is asynchronous. You will use this URL in the next step to get the training status.
@@ -246,11 +249,13 @@ Use the following **GET** request to query the status of your model's training p
246249

247250
### Parameters
248251

249-
Use the following header to authenticate your request.
252+
You need to pass the following parameters with your request.
250253

251254
|Key|Explanation|Value|
252255
|--|--|--|
253-
|`api-version`| The API version used. | `2021-11-01-preview` |
256+
|`api-version`| The API version used.| `2021-11-01-preview` |
257+
258+
This can be done by adding `?api-version=2021-11-01-preview` to the end of your request url.
254259

255260
### Headers
256261

@@ -311,11 +316,13 @@ Create a **PUT** request using the following URL, headers, and JSON body to star
311316

312317
### Parameters
313318

314-
Use the following header to authenticate your request.
319+
You need to pass the following parameters with your request.
315320

316321
|Key|Explanation|Value|
317322
|--|--|--|
318-
|`api-version`| The API version used. | `2021-11-01-preview` |
323+
|`api-version`| The API version used.| `2021-11-01-preview` |
324+
325+
This can be done by adding `?api-version=2021-11-01-preview` to the end of your request url.
319326

320327
### Headers
321328

@@ -339,7 +346,7 @@ Use the following JSON in your request. The model will be named `MyModel` once t
339346
Once you send your API request, you will receive a `202` response indicating success. In the response headers, extract the `location` value. It will be formatted like this:
340347

341348
```rest
342-
{YOUR-ENDPOINT}/language/analyze-text/projects/{YOUR-PROJECT-NAME}/deployments/{DEPLOYMENT-NAME}/jobs/{JOB-ID}
349+
{YOUR-ENDPOINT}/language/analyze-text/projects/{YOUR-PROJECT-NAME}/deployments/{DEPLOYMENT-NAME}/jobs/{JOB-ID}?api-version=xxxx-xx-xx-xxxxxxx
343350
```
344351

345352
`JOB-ID` is used to identify your request, since this operation is asynchronous. You will use this URL in the next step to get the publishing status.
@@ -361,11 +368,13 @@ Use the following **GET** request to query the status of your model's publishing
361368

362369
### Parameters
363370

364-
Use the following header to authenticate your request.
371+
You need to pass the following parameters with your request.
365372

366373
|Key|Explanation|Value|
367374
|--|--|--|
368-
|`api-version`| The API version used. | `2021-11-01-preview` |
375+
|`api-version`| The API version used.| `2021-11-01-preview` |
376+
377+
This can be done by adding `?api-version=2021-11-01-preview` to the end of your request url.
369378

370379
### Headers
371380

0 commit comments

Comments
 (0)