Skip to content

Commit 83a7e30

Browse files
author
gitName
committed
copyedits
1 parent 96e4e3d commit 83a7e30

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

articles/api-management/api-management-howto-api-inspector.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,17 @@ Detailed steps follow.
101101
}
102102
```
103103
104-
> NOTE: The `apiId` can only be only be pulled from the full resource ID, not the name displayed in the portal.
104+
> [!NOTE]
105+
> The `apiId` can only be pulled from the full resource ID, not the name displayed in the portal.
105106
106107
Get apiId:
107-
```sh
108+
109+
110+
```azurecli
108111
az apim api list --resource-group <resource-group> --service-name <service-name> -o table
109112
```
110113
111-
The token credential is returned in the response, similar to the following:
114+
The debug credential is returned in the response, similar to the following:
112115
113116
```json
114117
{
@@ -150,19 +153,22 @@ Detailed steps follow.
150153
151154
The response body contains the trace data for the previous API request to the gateway. The trace is similar to the trace you can see by tracing a call in the portal's test console.
152155
153-
Below is an example `.http` file for the VSCode http client extension:
156+
157+
### Example `.http` file for VSCode REST Client extension
158+
159+
To help automate these steps with the [Visual Studio Code REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) extension, you can use the following example `.http` file:
154160
155161
```http
156-
@subscriptionId = // Your subscription Id
162+
@subscriptionId = // Your subscription ID
157163
@resourceGroup = // Your resource group
158-
@apimName = // Your APIM Serviuce name
159-
@clientId = // Client id from an app registration for authentication
160-
@clientSecret = // Client Secret
164+
@apimName = // Your API Management Service name
165+
@clientId = // Client ID from an app registration for authentication
166+
@clientSecret = // Client secret
161167
@externalHost = // The host name of the APP Gateway or the fully qualified gateway URL
162-
@subscriptionKey = // Subscription key
168+
@subscriptionKey = //API Management subscription key
163169
@apiEndPoint = // API URL
164170
@requestBody = // Data to send
165-
@tenantId = // Tenant Id
171+
@tenantId = // Tenant ID
166172
167173
POST https://login.microsoftonline.com/{{tenandId}}/oauth2/token
168174
content-type: application/x-www-form-urlencoded

0 commit comments

Comments
 (0)