Skip to content

Commit 2f61ba1

Browse files
authored
Update rest-api.md
Fixed tabs
1 parent b3b4b6d commit 2f61ba1

File tree

1 file changed

+1
-27
lines changed
  • articles/ai-services/language-service/language-detection/includes/quickstarts

1 file changed

+1
-27
lines changed

articles/ai-services/language-service/language-detection/includes/quickstarts/rest-api.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ Use this quickstart to send language detection requests using the REST API. In t
2626
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
2727

2828

29-
30-
3129
## Create a JSON file with the example request body
3230

3331
In a code editor, create a new file named `test_languagedetection_payload.json` and copy the following JSON example. This example request will be sent to the API in the next step.
@@ -61,30 +59,6 @@ parameter |Description |
6159
|`-H "Ocp-Apim-Subscription-Key:<key>` | Specifies the key for accessing the API. |
6260
|`-d <documents>` | The JSON containing the documents you want to send. |
6361

64-
# [Windows](#tab/windows)
65-
66-
Replace `C:\Users\<myaccount>\Desktop\test_detection_payload.json` with the location of the example JSON request file you created in the previous step.
67-
68-
### Command prompt
69-
70-
```terminal
71-
curl -X POST "%LANGUAGE_ENDPOINT%/language/:analyze-text?api-version=2023-11-15-preview" ^
72-
-H "Content-Type: application/json" ^
73-
-H "Ocp-Apim-Subscription-Key: %LANGUAGE_KEY%" ^
74-
-d "@C:\Users\<myaccount>\Desktop\test_detection_payload.json"
75-
```
76-
77-
### PowerShell
78-
79-
```terminal
80-
curl.exe -X POST $env:LANGUAGE_ENDPOINT/language/:analyze-text?api-version=2023-11-15-preview `
81-
-H "Content-Type: application/json" `
82-
-H "Ocp-Apim-Subscription-Key: $env:LANGUAGE_KEY" `
83-
-d "@C:\Users\<myaccount>\Desktop\test_detection_payload.json"
84-
```
85-
86-
#### [Linux](#tab/linux)
87-
8862
Save `test_languagedetection_payload.json` somewhere on your computer. For example, your desktop.
8963

9064
## Send a language detection API request
@@ -180,4 +154,4 @@ curl -X POST $LANGUAGE_ENDPOINT/language/:analyze-text?api-version=2023-11-15-pr
180154
}
181155
```
182156

183-
[!INCLUDE [clean up environment variables](../../../includes/clean-up-variables.md)]
157+
[!INCLUDE [clean up environment variables](../../../includes/clean-up-variables.md)]

0 commit comments

Comments
 (0)