You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
*Hint: Use `yarn install` instead of `npm install` if you have installed [Yarn](https://yarnpkg.com/)… and yup, we have a lock file :sparkling_heart:*
39
+
*Hint: Use `yarn install` instead of `npm install` if you have installed [Yarn](https://yarnpkg.com/)… and yup, we have a lock file*:sparkling_heart:
39
40
40
41
41
42
Or with help of [Yeoman](http://yeoman.io)
@@ -172,13 +173,13 @@ The configuration object in Detail:
172
173
* You need to add at least one url object.
173
174
*`urls.params`
174
175
* Optional
175
-
* In this example a valid URL might be:
176
-
`http://localhost:8081/api/articles/foo/bar/baz`
177
-
whereas:
178
-
`http://localhost:8081/api/articles` will return a 404 error.
176
+
* URL path parameters with fixed and/or variable path segments.
177
+
* Example:
178
+
*`params: '/update/{id}'`
179
179
* See hapi docs. For example regarding optional [path parameters](http://hapijs.com/api#path-parameters).
180
180
*`urls.requests`
181
181
* You need to add at least one request object.
182
+
* Multiple request objects are needed in case you like to serve different responses via different HTTP methods with the same URL.
182
183
*`urls.requests.method`
183
184
* optional. Uses `GET` when not defined.
184
185
*`string`, or `array` of strings.
@@ -196,7 +197,7 @@ The configuration object in Detail:
196
197
* a status code with a predefined error object provided by [boom](https://github.com/hapijs/boom) if you dont provide a response property for that request.
197
198
*`statusCode`
198
199
* Optional
199
-
* Every route of this endpoint will return a HTTP error with the given status code provided by [boom](https://github.com/hapijs/boom).
200
+
* Every subroute of this endpoint will return a HTTP error with the given status code provided by [boom](https://github.com/hapijs/boom).
0 commit comments