Skip to content

Commit 9150d53

Browse files
committed
edits
1 parent 109df03 commit 9150d53

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

articles/api-management/mock-api-responses.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,28 +112,26 @@ To begin using Azure CLI:
112112
To add an operation to your test API, run the [az apim api operation create](/cli/azure/apim/api/operation#az-apim-api-operation-create) command:
113113

114114
```azurecli
115-
az apim api operation create --resource-group apim-hello-word-resource-group \
115+
az apim api operation create --resource-group <resource-group> \
116116
--display-name "Test call" --api-id test-api --method GET \
117-
--url-template /test --service-name apim-hello-world
117+
--url-template /test --service-name <API-management-service-name>
118118
```
119119

120120
Run the [az apim api operation list](/cli/azure/apim/api/operation#az-apim-api-operation-list) command to see all your operations for an API:
121121

122122
```azurecli
123-
az apim api operation list --resource-group apim-hello-word-resource-group \
124-
--api-id test-api --service-name apim-hello-world --output table
123+
az apim api operation list --resource-group <resource-group-name> \
124+
--api-id test-api --service-name <API-management-service-name> --output table
125125
```
126126

127-
To remove an operation, use the [az apim api operation delete](/cli/azure/apim/api/operation#az-apim-api-operation-delete) command. Get the operation ID from the previous command.
127+
Keep this operation for use in the rest of this article. If you want to remove an operation, you can use the [az apim api operation delete](/cli/azure/apim/api/operation#az-apim-api-operation-delete) command. Get the operation ID from the previous command.
128128

129129
```azurecli
130-
az apim api operation delete --resource-group apim-hello-word-resource-group \
130+
az apim api operation delete --resource-group <resource-group-name> \
131131
--api-id test-api --operation-id <ID> \
132-
--service-name apim-hello-world
132+
--service-name <API-management-service-name>
133133
```
134134

135-
Keep this operation for use in the rest of this article.
136-
137135
---
138136

139137
## Enable response mocking

0 commit comments

Comments
 (0)