@twin.org/api-models 0.0.3-next.21 → 0.0.3-next.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/es/errors/forbiddenError.js +23 -0
  2. package/dist/es/errors/forbiddenError.js.map +1 -0
  3. package/dist/es/errors/tooManyRequestsError.js +25 -0
  4. package/dist/es/errors/tooManyRequestsError.js.map +1 -0
  5. package/dist/es/helpers/httpErrorHelper.js +6 -2
  6. package/dist/es/helpers/httpErrorHelper.js.map +1 -1
  7. package/dist/es/index.js +5 -0
  8. package/dist/es/index.js.map +1 -1
  9. package/dist/es/models/httpContextIdKeys.js +21 -0
  10. package/dist/es/models/httpContextIdKeys.js.map +1 -0
  11. package/dist/es/models/responses/errors/IConflictResponse.js.map +1 -1
  12. package/dist/es/models/responses/errors/INotImplementedResponse.js +2 -0
  13. package/dist/es/models/responses/errors/INotImplementedResponse.js.map +1 -0
  14. package/dist/es/models/responses/errors/ITooManyRequestsResponse.js +2 -0
  15. package/dist/es/models/responses/errors/ITooManyRequestsResponse.js.map +1 -0
  16. package/dist/types/errors/forbiddenError.d.ts +20 -0
  17. package/dist/types/errors/tooManyRequestsError.d.ts +22 -0
  18. package/dist/types/index.d.ts +5 -0
  19. package/dist/types/models/httpContextIdKeys.d.ts +21 -0
  20. package/dist/types/models/responses/errors/IConflictResponse.d.ts +1 -6
  21. package/dist/types/models/responses/errors/INotImplementedResponse.d.ts +15 -0
  22. package/dist/types/models/responses/errors/ITooManyRequestsResponse.d.ts +15 -0
  23. package/docs/changelog.md +14 -0
  24. package/docs/reference/classes/ForbiddenError.md +55 -0
  25. package/docs/reference/classes/HttpErrorHelper.md +3 -3
  26. package/docs/reference/classes/HttpParameterHelper.md +4 -4
  27. package/docs/reference/classes/HttpUrlHelper.md +6 -6
  28. package/docs/reference/classes/TooManyRequestsError.md +67 -0
  29. package/docs/reference/index.md +6 -0
  30. package/docs/reference/interfaces/IAcceptedResponse.md +2 -2
  31. package/docs/reference/interfaces/IBadRequestResponse.md +2 -2
  32. package/docs/reference/interfaces/IBaseRestClientConfig.md +9 -9
  33. package/docs/reference/interfaces/IBaseRoute.md +12 -12
  34. package/docs/reference/interfaces/IBaseRouteEntryPoint.md +4 -4
  35. package/docs/reference/interfaces/IBaseRouteProcessor.md +7 -7
  36. package/docs/reference/interfaces/IBaseSocketClientConfig.md +7 -7
  37. package/docs/reference/interfaces/IConflictResponse.md +3 -11
  38. package/docs/reference/interfaces/ICreatedResponse.md +2 -2
  39. package/docs/reference/interfaces/IForbiddenResponse.md +2 -2
  40. package/docs/reference/interfaces/IHealthComponentInfo.md +4 -4
  41. package/docs/reference/interfaces/IHealthInfo.md +3 -3
  42. package/docs/reference/interfaces/IHostingComponent.md +3 -3
  43. package/docs/reference/interfaces/IHttpRequest.md +8 -8
  44. package/docs/reference/interfaces/IHttpRequestContext.md +6 -6
  45. package/docs/reference/interfaces/IHttpRequestPathParams.md +1 -1
  46. package/docs/reference/interfaces/IHttpRequestQuery.md +1 -1
  47. package/docs/reference/interfaces/IHttpResponse.md +6 -6
  48. package/docs/reference/interfaces/IHttpServerRequest.md +11 -11
  49. package/docs/reference/interfaces/IInformationComponent.md +8 -8
  50. package/docs/reference/interfaces/IInternalServerErrorResponse.md +2 -2
  51. package/docs/reference/interfaces/IMimeTypeProcessor.md +2 -2
  52. package/docs/reference/interfaces/INoContentRequest.md +8 -8
  53. package/docs/reference/interfaces/INoContentResponse.md +1 -1
  54. package/docs/reference/interfaces/INotFoundResponse.md +3 -3
  55. package/docs/reference/interfaces/INotImplementedResponse.md +19 -0
  56. package/docs/reference/interfaces/IOkResponse.md +1 -1
  57. package/docs/reference/interfaces/IRestRoute.md +26 -26
  58. package/docs/reference/interfaces/IRestRouteExample.md +3 -3
  59. package/docs/reference/interfaces/IRestRouteProcessor.md +10 -10
  60. package/docs/reference/interfaces/IRestRouteRequestExample.md +4 -4
  61. package/docs/reference/interfaces/IRestRouteResponseAttachmentOptions.md +6 -6
  62. package/docs/reference/interfaces/IRestRouteResponseExample.md +4 -4
  63. package/docs/reference/interfaces/IRestRouteResponseOptions.md +2 -2
  64. package/docs/reference/interfaces/IServerFavIconResponse.md +7 -7
  65. package/docs/reference/interfaces/IServerHealthResponse.md +1 -1
  66. package/docs/reference/interfaces/IServerInfo.md +2 -2
  67. package/docs/reference/interfaces/IServerInfoResponse.md +1 -1
  68. package/docs/reference/interfaces/IServerLivezResponse.md +2 -2
  69. package/docs/reference/interfaces/IServerRootResponse.md +2 -2
  70. package/docs/reference/interfaces/IServerSpecResponse.md +4 -4
  71. package/docs/reference/interfaces/ISocketRequestContext.md +7 -7
  72. package/docs/reference/interfaces/ISocketRoute.md +17 -17
  73. package/docs/reference/interfaces/ISocketRouteProcessor.md +16 -16
  74. package/docs/reference/interfaces/ISocketServerRequest.md +12 -12
  75. package/docs/reference/interfaces/ITag.md +2 -2
  76. package/docs/reference/interfaces/ITenant.md +8 -8
  77. package/docs/reference/interfaces/ITenantAdminComponent.md +7 -7
  78. package/docs/reference/interfaces/ITooManyRequestsResponse.md +19 -0
  79. package/docs/reference/interfaces/IUnauthorizedResponse.md +2 -2
  80. package/docs/reference/interfaces/IUnprocessableEntityResponse.md +2 -2
  81. package/docs/reference/interfaces/IWebServer.md +4 -4
  82. package/docs/reference/interfaces/IWebServerOptions.md +36 -12
  83. package/docs/reference/type-aliases/HttpContextIdKeys.md +5 -0
  84. package/docs/reference/variables/HealthStatus.md +3 -3
  85. package/docs/reference/variables/HttpContextIdKeys.md +25 -0
  86. package/package.json +1 -1
@@ -8,7 +8,7 @@ The information component for the server.
8
8
 
9
9
  ## Methods
10
10
 
11
- ### root()
11
+ ### root() {#root}
12
12
 
13
13
  > **root**(): `Promise`\<`string`\>
14
14
 
@@ -22,7 +22,7 @@ The root information.
22
22
 
23
23
  ***
24
24
 
25
- ### info()
25
+ ### info() {#info}
26
26
 
27
27
  > **info**(): `Promise`\<[`IServerInfo`](IServerInfo.md)\>
28
28
 
@@ -36,7 +36,7 @@ The service information.
36
36
 
37
37
  ***
38
38
 
39
- ### favicon()
39
+ ### favicon() {#favicon}
40
40
 
41
41
  > **favicon**(): `Promise`\<`Uint8Array`\<`ArrayBufferLike`\> \| `undefined`\>
42
42
 
@@ -50,7 +50,7 @@ The favicon.
50
50
 
51
51
  ***
52
52
 
53
- ### spec()
53
+ ### spec() {#spec}
54
54
 
55
55
  > **spec**(): `Promise`\<`unknown`\>
56
56
 
@@ -64,7 +64,7 @@ The OpenAPI spec.
64
64
 
65
65
  ***
66
66
 
67
- ### livez()
67
+ ### livez() {#livez}
68
68
 
69
69
  > **livez**(): `Promise`\<`boolean`\>
70
70
 
@@ -78,7 +78,7 @@ True if the server is live.
78
78
 
79
79
  ***
80
80
 
81
- ### health()
81
+ ### health() {#health}
82
82
 
83
83
  > **health**(): `Promise`\<[`IHealthInfo`](IHealthInfo.md)\>
84
84
 
@@ -92,7 +92,7 @@ The service health.
92
92
 
93
93
  ***
94
94
 
95
- ### setComponentHealth()
95
+ ### setComponentHealth() {#setcomponenthealth}
96
96
 
97
97
  > **setComponentHealth**(`name`, `status`, `details?`, `tenantId?`): `Promise`\<`void`\>
98
98
 
@@ -132,7 +132,7 @@ Nothing.
132
132
 
133
133
  ***
134
134
 
135
- ### removeComponentHealth()
135
+ ### removeComponentHealth() {#removecomponenthealth}
136
136
 
137
137
  > **removeComponentHealth**(`name`, `tenantId?`): `Promise`\<`void`\>
138
138
 
@@ -4,7 +4,7 @@ The server has encountered a situation it does not know how to handle, see the c
4
4
 
5
5
  ## Properties
6
6
 
7
- ### statusCode
7
+ ### statusCode {#statuscode}
8
8
 
9
9
  > **statusCode**: `500`
10
10
 
@@ -12,7 +12,7 @@ Response status code.
12
12
 
13
13
  ***
14
14
 
15
- ### body
15
+ ### body {#body}
16
16
 
17
17
  > **body**: `IError`
18
18
 
@@ -8,7 +8,7 @@ The definition for a handler for a specific MIME type.
8
8
 
9
9
  ## Methods
10
10
 
11
- ### getTypes()
11
+ ### getTypes() {#gettypes}
12
12
 
13
13
  > **getTypes**(): `string`[]
14
14
 
@@ -22,7 +22,7 @@ The MIME types that this handler can handle.
22
22
 
23
23
  ***
24
24
 
25
- ### handle()
25
+ ### handle() {#handle}
26
26
 
27
27
  > **handle**(`body`): `Promise`\<`unknown`\>
28
28
 
@@ -8,9 +8,9 @@ A REST request with no input parameters.
8
8
 
9
9
  ## Properties
10
10
 
11
- ### headers?
11
+ ### headers? {#headers}
12
12
 
13
- > `optional` **headers**: `undefined`
13
+ > `optional` **headers?**: `undefined`
14
14
 
15
15
  Incoming Http Headers.
16
16
 
@@ -20,9 +20,9 @@ Incoming Http Headers.
20
20
 
21
21
  ***
22
22
 
23
- ### pathParams?
23
+ ### pathParams? {#pathparams}
24
24
 
25
- > `optional` **pathParams**: `undefined`
25
+ > `optional` **pathParams?**: `undefined`
26
26
 
27
27
  The path parameters.
28
28
 
@@ -32,9 +32,9 @@ The path parameters.
32
32
 
33
33
  ***
34
34
 
35
- ### query?
35
+ ### query? {#query}
36
36
 
37
- > `optional` **query**: `undefined`
37
+ > `optional` **query?**: `undefined`
38
38
 
39
39
  The query parameters.
40
40
 
@@ -44,9 +44,9 @@ The query parameters.
44
44
 
45
45
  ***
46
46
 
47
- ### body?
47
+ ### body? {#body}
48
48
 
49
- > `optional` **body**: `undefined`
49
+ > `optional` **body?**: `undefined`
50
50
 
51
51
  Data to return send as the body.
52
52
 
@@ -4,7 +4,7 @@ The rest request ended in success with no data.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### statusCode
7
+ ### statusCode {#statuscode}
8
8
 
9
9
  > **statusCode**: `204`
10
10
 
@@ -4,7 +4,7 @@ The resource you tried to access does not exist, see the content for more detail
4
4
 
5
5
  ## Properties
6
6
 
7
- ### statusCode
7
+ ### statusCode {#statuscode}
8
8
 
9
9
  > **statusCode**: `404`
10
10
 
@@ -12,7 +12,7 @@ Response status code.
12
12
 
13
13
  ***
14
14
 
15
- ### body
15
+ ### body {#body}
16
16
 
17
17
  > **body**: `IError` & `object`
18
18
 
@@ -22,6 +22,6 @@ The body which contains the error.
22
22
 
23
23
  ##### notFoundId?
24
24
 
25
- > `optional` **notFoundId**: `string`
25
+ > `optional` **notFoundId?**: `string`
26
26
 
27
27
  The id if the item that was not found.
@@ -0,0 +1,19 @@
1
+ # Interface: INotImplementedResponse
2
+
3
+ The operation that you tried to perform is not implemented, see the content for more details.
4
+
5
+ ## Properties
6
+
7
+ ### statusCode {#statuscode}
8
+
9
+ > **statusCode**: `501`
10
+
11
+ Response status code.
12
+
13
+ ***
14
+
15
+ ### body {#body}
16
+
17
+ > **body**: `IError`
18
+
19
+ The body which contains the error.
@@ -4,7 +4,7 @@ The rest request ended in success with no data.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### statusCode
7
+ ### statusCode {#statuscode}
8
8
 
9
9
  > **statusCode**: `200`
10
10
 
@@ -18,7 +18,7 @@ Interface which defines a REST route.
18
18
 
19
19
  ## Properties
20
20
 
21
- ### operationId
21
+ ### operationId {#operationid}
22
22
 
23
23
  > **operationId**: `string`
24
24
 
@@ -30,7 +30,7 @@ The id of the operation.
30
30
 
31
31
  ***
32
32
 
33
- ### path
33
+ ### path {#path}
34
34
 
35
35
  > **path**: `string`
36
36
 
@@ -42,9 +42,9 @@ The path to use for routing.
42
42
 
43
43
  ***
44
44
 
45
- ### skipAuth?
45
+ ### skipAuth? {#skipauth}
46
46
 
47
- > `optional` **skipAuth**: `boolean`
47
+ > `optional` **skipAuth?**: `boolean`
48
48
 
49
49
  Skips the authentication requirement for this route.
50
50
 
@@ -54,9 +54,9 @@ Skips the authentication requirement for this route.
54
54
 
55
55
  ***
56
56
 
57
- ### skipTenant?
57
+ ### skipTenant? {#skiptenant}
58
58
 
59
- > `optional` **skipTenant**: `boolean`
59
+ > `optional` **skipTenant?**: `boolean`
60
60
 
61
61
  Skips the tenant requirement for this route.
62
62
 
@@ -66,9 +66,9 @@ Skips the tenant requirement for this route.
66
66
 
67
67
  ***
68
68
 
69
- ### requiredScope?
69
+ ### requiredScope? {#requiredscope}
70
70
 
71
- > `optional` **requiredScope**: `string`[]
71
+ > `optional` **requiredScope?**: `string`[]
72
72
 
73
73
  The user must have one of the specified scopes to access the route.
74
74
 
@@ -78,9 +78,9 @@ The user must have one of the specified scopes to access the route.
78
78
 
79
79
  ***
80
80
 
81
- ### processorFeatures?
81
+ ### processorFeatures? {#processorfeatures}
82
82
 
83
- > `optional` **processorFeatures**: `string`[]
83
+ > `optional` **processorFeatures?**: `string`[]
84
84
 
85
85
  The features supported by additional processors to run for this route.
86
86
 
@@ -90,9 +90,9 @@ The features supported by additional processors to run for this route.
90
90
 
91
91
  ***
92
92
 
93
- ### processorData?
93
+ ### processorData? {#processordata}
94
94
 
95
- > `optional` **processorData**: `object`
95
+ > `optional` **processorData?**: `object`
96
96
 
97
97
  The data for additional processors to run for this route.
98
98
 
@@ -106,7 +106,7 @@ The data for additional processors to run for this route.
106
106
 
107
107
  ***
108
108
 
109
- ### summary
109
+ ### summary {#summary}
110
110
 
111
111
  > **summary**: `string`
112
112
 
@@ -114,7 +114,7 @@ Summary of what task the operation performs.
114
114
 
115
115
  ***
116
116
 
117
- ### tag
117
+ ### tag {#tag}
118
118
 
119
119
  > **tag**: `string`
120
120
 
@@ -122,7 +122,7 @@ Tag for the operation.
122
122
 
123
123
  ***
124
124
 
125
- ### method
125
+ ### method {#method}
126
126
 
127
127
  > **method**: `HttpMethod`
128
128
 
@@ -130,7 +130,7 @@ The http method.
130
130
 
131
131
  ***
132
132
 
133
- ### handler()
133
+ ### handler {#handler}
134
134
 
135
135
  > **handler**: (`httpRequestContext`, `request`) => `Promise`\<`U`\>
136
136
 
@@ -156,9 +156,9 @@ The request object, combined query param, path params and body.
156
156
 
157
157
  ***
158
158
 
159
- ### requestType?
159
+ ### requestType? {#requesttype}
160
160
 
161
- > `optional` **requestType**: `object`
161
+ > `optional` **requestType?**: `object`
162
162
 
163
163
  The type of the request object.
164
164
 
@@ -170,21 +170,21 @@ The object type for the request.
170
170
 
171
171
  #### mimeType?
172
172
 
173
- > `optional` **mimeType**: `string`
173
+ > `optional` **mimeType?**: `string`
174
174
 
175
175
  The mime type of the request, defaults to "application/json" if there is a body.
176
176
 
177
177
  #### examples?
178
178
 
179
- > `optional` **examples**: [`IRestRouteRequestExample`](IRestRouteRequestExample.md)\<`T`\>[]
179
+ > `optional` **examples?**: [`IRestRouteRequestExample`](IRestRouteRequestExample.md)\<`T`\>[]
180
180
 
181
181
  Example objects for the request.
182
182
 
183
183
  ***
184
184
 
185
- ### responseType?
185
+ ### responseType? {#responsetype}
186
186
 
187
- > `optional` **responseType**: `object`[]
187
+ > `optional` **responseType?**: `object`[]
188
188
 
189
189
  The type of the response object.
190
190
 
@@ -196,20 +196,20 @@ The object type of the response.
196
196
 
197
197
  #### mimeType?
198
198
 
199
- > `optional` **mimeType**: `string`
199
+ > `optional` **mimeType?**: `string`
200
200
 
201
201
  The mime type of the response, defaults to "application/json" if there is a body.
202
202
 
203
203
  #### examples?
204
204
 
205
- > `optional` **examples**: [`IRestRouteResponseExample`](IRestRouteResponseExample.md)\<`U`\>[]
205
+ > `optional` **examples?**: [`IRestRouteResponseExample`](IRestRouteResponseExample.md)\<`U`\>[]
206
206
 
207
207
  Example objects of the response.
208
208
 
209
209
  ***
210
210
 
211
- ### excludeFromSpec?
211
+ ### excludeFromSpec? {#excludefromspec}
212
212
 
213
- > `optional` **excludeFromSpec**: `boolean`
213
+ > `optional` **excludeFromSpec?**: `boolean`
214
214
 
215
215
  Exclude the route from being included in the spec file.
@@ -9,7 +9,7 @@ Interface which defines a REST route example.
9
9
 
10
10
  ## Properties
11
11
 
12
- ### id
12
+ ### id {#id}
13
13
 
14
14
  > **id**: `string`
15
15
 
@@ -17,8 +17,8 @@ Example objects for the request.
17
17
 
18
18
  ***
19
19
 
20
- ### description?
20
+ ### description? {#description}
21
21
 
22
- > `optional` **description**: `string`
22
+ > `optional` **description?**: `string`
23
23
 
24
24
  Description of the example.
@@ -8,7 +8,7 @@ The definition for a processor for handling REST routes.
8
8
 
9
9
  ## Methods
10
10
 
11
- ### features()?
11
+ ### features()? {#features}
12
12
 
13
13
  > `optional` **features**(): `string`[]
14
14
 
@@ -28,7 +28,7 @@ The features supported by this processor.
28
28
 
29
29
  ***
30
30
 
31
- ### pre()?
31
+ ### pre()? {#pre}
32
32
 
33
33
  > `optional` **pre**(`request`, `response`, `route`, `contextIds`, `processorState`, `componentTypes?`): `Promise`\<`void`\>
34
34
 
@@ -50,9 +50,9 @@ The response data to send if any.
50
50
 
51
51
  ##### route
52
52
 
53
- The route being requested, if a matching one was found.
53
+ [`IRestRoute`](IRestRoute.md)\<`any`, `any`\> \| `undefined`
54
54
 
55
- [`IRestRoute`](IRestRoute.md)\<`any`, `any`\> | `undefined`
55
+ The route being requested, if a matching one was found.
56
56
 
57
57
  ##### contextIds
58
58
 
@@ -92,7 +92,7 @@ Promise that resolves when the request is processed.
92
92
 
93
93
  ***
94
94
 
95
- ### post()?
95
+ ### post()? {#post}
96
96
 
97
97
  > `optional` **post**(`request`, `response`, `route`, `contextIds`, `processorState`, `componentTypes?`): `Promise`\<`void`\>
98
98
 
@@ -114,9 +114,9 @@ The response data to send if any.
114
114
 
115
115
  ##### route
116
116
 
117
- The route being requested, if a matching one was found.
117
+ [`IRestRoute`](IRestRoute.md)\<`any`, `any`\> \| `undefined`
118
118
 
119
- [`IRestRoute`](IRestRoute.md)\<`any`, `any`\> | `undefined`
119
+ The route being requested, if a matching one was found.
120
120
 
121
121
  ##### contextIds
122
122
 
@@ -156,7 +156,7 @@ Promise that resolves when the request is processed.
156
156
 
157
157
  ***
158
158
 
159
- ### process()?
159
+ ### process()? {#process}
160
160
 
161
161
  > `optional` **process**(`request`, `response`, `route`, `processorState`, `componentTypes?`): `Promise`\<`void`\>
162
162
 
@@ -178,9 +178,9 @@ The response data to send if any.
178
178
 
179
179
  ##### route
180
180
 
181
- The route being requested, if a matching one was found.
181
+ [`IRestRoute`](IRestRoute.md)\<`any`, `any`\> \| `undefined`
182
182
 
183
- [`IRestRoute`](IRestRoute.md)\<`any`, `any`\> | `undefined`
183
+ The route being requested, if a matching one was found.
184
184
 
185
185
  ##### processorState
186
186
 
@@ -14,7 +14,7 @@ Interface which defines a REST route request example.
14
14
 
15
15
  ## Properties
16
16
 
17
- ### id
17
+ ### id {#id}
18
18
 
19
19
  > **id**: `string`
20
20
 
@@ -26,9 +26,9 @@ Example objects for the request.
26
26
 
27
27
  ***
28
28
 
29
- ### description?
29
+ ### description? {#description}
30
30
 
31
- > `optional` **description**: `string`
31
+ > `optional` **description?**: `string`
32
32
 
33
33
  Description of the example.
34
34
 
@@ -38,7 +38,7 @@ Description of the example.
38
38
 
39
39
  ***
40
40
 
41
- ### request
41
+ ### request {#request}
42
42
 
43
43
  > **request**: `T`
44
44
 
@@ -4,24 +4,24 @@ Interface which defines a REST route response for attachments.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### mimeType?
7
+ ### mimeType? {#mimetype}
8
8
 
9
- > `optional` **mimeType**: `string`
9
+ > `optional` **mimeType?**: `string`
10
10
 
11
11
  The content type to use in the response.
12
12
 
13
13
  ***
14
14
 
15
- ### filename?
15
+ ### filename? {#filename}
16
16
 
17
- > `optional` **filename**: `string`
17
+ > `optional` **filename?**: `string`
18
18
 
19
19
  The filename to use in content disposition.
20
20
 
21
21
  ***
22
22
 
23
- ### inline?
23
+ ### inline? {#inline}
24
24
 
25
- > `optional` **inline**: `boolean`
25
+ > `optional` **inline?**: `boolean`
26
26
 
27
27
  Whether to inline the content.
@@ -14,7 +14,7 @@ Interface which defines a REST route response example.
14
14
 
15
15
  ## Properties
16
16
 
17
- ### id
17
+ ### id {#id}
18
18
 
19
19
  > **id**: `string`
20
20
 
@@ -26,9 +26,9 @@ Example objects for the request.
26
26
 
27
27
  ***
28
28
 
29
- ### description?
29
+ ### description? {#description}
30
30
 
31
- > `optional` **description**: `string`
31
+ > `optional` **description?**: `string`
32
32
 
33
33
  Description of the example.
34
34
 
@@ -38,7 +38,7 @@ Description of the example.
38
38
 
39
39
  ***
40
40
 
41
- ### response
41
+ ### response {#response}
42
42
 
43
43
  > **response**: `T`
44
44
 
@@ -4,8 +4,8 @@ Interface which defines a REST route response.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### attachment?
7
+ ### attachment? {#attachment}
8
8
 
9
- > `optional` **attachment**: [`IRestRouteResponseAttachmentOptions`](IRestRouteResponseAttachmentOptions.md)
9
+ > `optional` **attachment?**: [`IRestRouteResponseAttachmentOptions`](IRestRouteResponseAttachmentOptions.md)
10
10
 
11
11
  Additional options that can be used to control the response.
@@ -4,30 +4,30 @@ The favicon for the server.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### headers?
7
+ ### headers? {#headers}
8
8
 
9
- > `optional` **headers**: `object`
9
+ > `optional` **headers?**: `object`
10
10
 
11
11
  Additional response headers.
12
12
 
13
13
  #### content-type?
14
14
 
15
- > `optional` **content-type**: `string`
15
+ > `optional` **content-type?**: `string`
16
16
 
17
17
  The content type for the response.
18
18
 
19
19
  ***
20
20
 
21
- ### statusCode?
21
+ ### statusCode? {#statuscode}
22
22
 
23
- > `optional` **statusCode**: `HttpStatusCode`
23
+ > `optional` **statusCode?**: `HttpStatusCode`
24
24
 
25
25
  Response status code.
26
26
 
27
27
  ***
28
28
 
29
- ### body?
29
+ ### body? {#body}
30
30
 
31
- > `optional` **body**: `Uint8Array`\<`ArrayBufferLike`\>
31
+ > `optional` **body?**: `Uint8Array`\<`ArrayBufferLike`\>
32
32
 
33
33
  The favicon for the server.
@@ -4,7 +4,7 @@ The health of the server.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### body
7
+ ### body {#body}
8
8
 
9
9
  > **body**: [`IHealthInfo`](IHealthInfo.md)
10
10
 
@@ -4,7 +4,7 @@ The information about the server.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### name
7
+ ### name {#name}
8
8
 
9
9
  > **name**: `string`
10
10
 
@@ -12,7 +12,7 @@ The application name.
12
12
 
13
13
  ***
14
14
 
15
- ### version
15
+ ### version {#version}
16
16
 
17
17
  > **version**: `string`
18
18
 
@@ -4,7 +4,7 @@ The information about the server.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### body
7
+ ### body {#body}
8
8
 
9
9
  > **body**: [`IServerInfo`](IServerInfo.md)
10
10
 
@@ -4,7 +4,7 @@ The livez of the server.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### headers
7
+ ### headers {#headers}
8
8
 
9
9
  > **headers**: `object`
10
10
 
@@ -16,7 +16,7 @@ The headers for the response.
16
16
 
17
17
  ***
18
18
 
19
- ### body
19
+ ### body {#body}
20
20
 
21
21
  > **body**: `"ok"` \| `"failed"`
22
22