@gtsc/api-models
Advanced tools
Comparing version 0.0.3-next.23 to 0.0.3-next.24
@@ -7,11 +7,11 @@ import type { IServiceRequestContext } from "@gtsc/services"; | ||
* Process the REST request for the specified route. | ||
* @param requestContext The context for the request. | ||
* @param request The request to handle. | ||
* @param response The response data to send if any. | ||
* @param route The route being requested, if a matching one was found. | ||
* @param requestContext The context for the request. | ||
* @param state The state for the request. | ||
* @param options Options for the processor. | ||
*/ | ||
export type HttpRestRouteProcessor<T = never> = (requestContext: IServiceRequestContext, request: IHttpRequest, response: IHttpResponse, route: IRestRoute | undefined, state: { | ||
export type HttpRestRouteProcessor<T = never> = (request: IHttpRequest, response: IHttpResponse, route: IRestRoute | undefined, requestContext: IServiceRequestContext, state: { | ||
[id: string]: unknown; | ||
}, options?: T) => Promise<void>; |
@@ -7,3 +7,3 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
> **HttpRestRouteProcessor**\<`T`\>: (`requestContext`, `request`, `response`, `route`, `state`, `options`?) => `Promise`\<`void`\> | ||
> **HttpRestRouteProcessor**\<`T`\>: (`request`, `response`, `route`, `requestContext`, `state`, `options`?) => `Promise`\<`void`\> | ||
@@ -18,6 +18,2 @@ Process the REST request for the specified route. | ||
• **requestContext**: `IServiceRequestContext` | ||
The context for the request. | ||
• **request**: [`IHttpRequest`](../interfaces/IHttpRequest.md) | ||
@@ -35,2 +31,6 @@ | ||
• **requestContext**: `IServiceRequestContext` | ||
The context for the request. | ||
• **state** | ||
@@ -37,0 +37,0 @@ |
{ | ||
"name": "@gtsc/api-models", | ||
"version": "0.0.3-next.23", | ||
"version": "0.0.3-next.24", | ||
"description": "Contains models and classes for use with APIs", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package