Class OpenApiOperationExtensions
- Namespace
- TypedRest.CodeGeneration
- Assembly
- TypedRest.CodeGeneration.dll
public static class OpenApiOperationExtensions
- Inheritance
-
objectOpenApiOperationExtensions
Methods
Get200Response(OpenApiOperation)
Gets the HTTP 200 response, if any.
public static OpenApiResponse? Get200Response(this OpenApiOperation operation)
Parameters
operationOpenApiOperation
Returns
Get20XResponse(OpenApiOperation)
Gets the HTTP 200, 201, 202 or 204 response, if any.
public static OpenApiResponse? Get20XResponse(this OpenApiOperation operation)
Parameters
operationOpenApiOperation
Returns
GetJsonSchema(OpenApiRequestBody)
Gets the schema for the JSON media type, if any.
public static OpenApiSchema? GetJsonSchema(this OpenApiRequestBody request)
Parameters
requestOpenApiRequestBody
Returns
GetJsonSchema(OpenApiResponse)
Gets the schema for the JSON media type, if any.
public static OpenApiSchema? GetJsonSchema(this OpenApiResponse response)
Parameters
responseOpenApiResponse
Returns
GetResponse(OpenApiOperation, HttpStatusCode)
Gets the response for a specific HTTP statusCode, if any.
public static OpenApiResponse? GetResponse(this OpenApiOperation operation, HttpStatusCode statusCode)
Parameters
operationOpenApiOperationstatusCodeHttpStatusCode