Skip to content

Commit 0428247

Browse files
authored
Merge pull request #288519 from vhorne/sfi-postman
remove references to Postman
2 parents 287e585 + 5afe1eb commit 0428247

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

articles/web-application-firewall/afds/protect-azure-open-ai.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ First, create an OpenAI instance.
3535

3636
:::image type="content" source="../media/protect-azure-open-ai/sample-code.png" alt-text="Screenshot showing Azure OpenAI sample code with Endpoint and Key.":::
3737

38-
1. Validate Azure OpenAI call using [Postman](https://www.postman.com/).
38+
1. Validate Azure OpenAI call using your favorite API test method, such as [Visual Studio](/aspnet/core/test/http-files) or [Insomnia](https://insomnia.rest/).
3939
Use the Azure OpenAPI endpoint and api-key values found in the earlier steps.
4040
Use these lines of code in the POST body:
4141

@@ -51,7 +51,7 @@ First, create an OpenAI instance.
5151
}
5252

5353
```
54-
:::image type="content" source="../media/protect-azure-open-ai/postman-body.png" alt-text="Screenshot showing the post body." lightbox="../media/protect-azure-open-ai/postman-body.png":::
54+
:::image type="content" source="../media/protect-azure-open-ai/post-body.png" alt-text="Screenshot showing the post body." lightbox="../media/protect-azure-open-ai/post-body.png":::
5555
1. In response to the POST, you should receive a *200 OK*:
5656
:::image type="content" source="../media/protect-azure-open-ai/post-200-ok.png" alt-text="Screenshot showing the POST 200 OK." lightbox="../media/protect-azure-open-ai/post-200-ok.png":::
5757

@@ -82,8 +82,8 @@ Now verify your Azure Front Door endpoint.
8282
1. Retrieve the Azure Front Door endpoint from the Front Door Manager.
8383

8484
:::image type="content" source="../media/protect-azure-open-ai/front-door-endpoint.png" alt-text="Screenshot showing the Azure Front Door endpoint." lightbox="../media/protect-azure-open-ai/front-door-endpoint.png":::
85-
2. Use Postman to send a POST request to the Azure Front Door endpoint.
86-
1. Replace the Azure OpenAI endpoint with the AFD endpoint in Postman POST request.
85+
2. Use your favorite API test method, such as [Visual Studio](/aspnet/core/test/http-files) or [Insomnia](https://insomnia.rest/) to send a POST request to the Azure Front Door endpoint.
86+
1. Replace the Azure OpenAI endpoint with the AFD endpoint in the POST request.
8787
:::image type="content" source="../media/protect-azure-open-ai/test-final.png" alt-text="Screenshot showing the final POST." lightbox="../media/protect-azure-open-ai/test-final.png":::
8888

8989
Azure OpenAI also generates a response using the GPT model.
@@ -106,4 +106,4 @@ The following items are common issues you may encounter when using Azure OpenAI
106106

107107
- You get a *415: Unsupported Media Type* message when you send a POST request to your Azure OpenAI endpoint.
108108

109-
If you attempt to send a POST request to your Azure OpenAI endpoint with the Content-Type header `text/plain`, you get this message. Make sure to update your Content-Type header to `application/json` in the header section in Postman.
109+
If you attempt to send a POST request to your Azure OpenAI endpoint with the Content-Type header `text/plain`, you get this message. Make sure to update your Content-Type header to `application/json` in the header section in your test.

0 commit comments

Comments
 (0)