Skip to content

Commit 62f545c

Browse files
committed
Tweaks
1 parent afb1125 commit 62f545c

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

+12-8
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ custom:
7070
7171
functions:
7272
myFunc:
73-
documentation: ${file(serverless.doc.yml):endpoints.myFunc}
73+
events:
74+
- http:
75+
path: getStuff
76+
method: get
77+
documentation: ${file(serverless.doc.yml):endpoints.myFunc}
7478
```
7579

7680
For more info on `serverless.yml` syntax, see their docs.
@@ -179,7 +183,7 @@ functions:
179183
application/json: "ErrorResponse"
180184
```
181185

182-
#### queryParams
186+
#### `queryParams`
183187

184188
Query parameters can be described as follow:
185189

@@ -197,7 +201,7 @@ queryParams:
197201
type: "string"
198202
```
199203

200-
#### pathParams
204+
#### `pathParams`
201205

202206
Path parameters can be described as follow:
203207

@@ -213,7 +217,7 @@ pathParams:
213217
type: "string"
214218
```
215219

216-
#### cookieParams
220+
#### `cookieParams`
217221

218222
Cookie parameters can be described as follow:
219223

@@ -231,7 +235,7 @@ cookieParams:
231235
type: "string"
232236
```
233237

234-
#### requestModels
238+
#### `requestModels`
235239

236240
The `requestModels` property allows you to define models for the HTTP Request of the function event. You can define a different model for each different `Content-Type`. You can define a reference to the relevant request model named in the `models` section of your configuration (see [Defining Models](#defining-models) section).
237241

@@ -241,7 +245,7 @@ requestModels:
241245
application/xml: "CreateRequestXML"
242246
```
243247

244-
#### methodResponses
248+
#### `methodResponses`
245249

246250
You can define the response schemas by defining properties for your function event.
247251

@@ -260,7 +264,7 @@ methodResponse:
260264
application/xml: "CreateResponseXML"
261265
```
262266

263-
##### responseModels
267+
##### `responseModels`
264268

265269
The `responseModels` property allows you to define models for the HTTP Response of the function event. You can define a different model for each different `Content-Type`. You can define a reference to the relevant response model named in the `models` section of your configuration (see [Defining Models](#defining-models) section).
266270

@@ -270,7 +274,7 @@ responseModels:
270274
application/xml: "CreateResponseXML"
271275
```
272276

273-
##### responseHeaders
277+
##### `responseHeaders`
274278

275279
The `responseHeaders` section of the configuration allows you to define the HTTP response headers for the function event.
276280

0 commit comments

Comments
 (0)