@@ -74,9 +74,8 @@ awslocal apigateway create-rest-api --name 'API Gateway Lambda integration'
7474```
7575
7676This creates a new REST API named ` API Gateway Lambda integration ` .
77- The above command returns the following response:
7877
79- ``` json
78+ ``` bash title="Output"
8079{
8180 " id" : " cor3o5oeci" ,
8281 " name" : " API Gateway Lambda integration" ,
@@ -102,9 +101,7 @@ Use the REST API ID generated in the previous step to fetch the resources for th
102101awslocal apigateway get-resources --rest-api-id < REST_API_ID>
103102```
104103
105- The above command returns the following response:
106-
107- ``` json
104+ ``` bash title="Output"
108105{
109106 " items" : [
110107 {
@@ -130,9 +127,7 @@ awslocal apigateway create-resource \
130127 --path-part " {somethingId}"
131128```
132129
133- The above command returns the following response:
134-
135- ``` json
130+ ``` bash title="Output"
136131{
137132 " id" : " zzcvcf56ar" ,
138133 " parentId" : " u53af9hm83" ,
@@ -158,9 +153,7 @@ awslocal apigateway put-method \
158153 --authorization-type " NONE"
159154```
160155
161- The above command returns the following response:
162-
163- ``` json
156+ ``` bash title="Output"
164157{
165158 " httpMethod" : " GET" ,
166159 " authorizationType" : " NONE" ,
@@ -204,9 +197,7 @@ You can use [curl](https://curl.se/) or any HTTP REST client to invoke the API e
204197curl -X GET http://< REST_API_ID> .execute-api.localhost.localstack.cloud:4566/dev/test
205198```
206199
207- The response would be:
208-
209- ``` json
200+ ``` bash title="Output"
210201{" message" :" Hello World" }
211202```
212203
@@ -216,9 +207,7 @@ You can also use our [alternative URL format](#alternative-url-format) in case o
216207curl -X GET http://localhost:4566/_aws/execute-api/< REST_API_ID> /dev/test
217208```
218209
219- The response would be:
220-
221- ``` json
210+ ``` bash title="Output"
222211{" message" :" Hello World" }
223212```
224213
@@ -362,9 +351,7 @@ To retrieve the list of APIs and verify the WebSocket endpoint, you can use the
362351awslocal apigatewayv2 get-apis
363352` ` `
364353
365- The response would be :
366-
367- ` ` ` json
354+ ` ` ` bash title="Output"
368355{
369356 "Items": [{
370357 "ApiEndpoint": "ws://localhost:4510",
@@ -407,9 +394,7 @@ The following example assigns the custom ID `"myid123"` to the API:
407394awslocal apigateway create-rest-api --name my-api --tags '{"_custom_id_":"myid123"}'
408395` ` `
409396
410- The response would be :
411-
412- ` ` ` json
397+ ` ` ` bash title="Output"
413398{
414399 "id": "myid123",
415400 ....
@@ -496,4 +481,4 @@ The following code snippets and sample applications provide practical examples o
496481
497482# # API Coverage (V2)
498483
499- <FeatureCoverage service="apigatewayv2" client:load />
484+ <FeatureCoverage service="apigatewayv2" client:load />
0 commit comments