Class UploadEndpoint
- Namespace
- TypedRest.CodeGeneration.Endpoints.Raw
- Assembly
- TypedRest.CodeGeneration.dll
Endpoint that accepts binary uploads.
public class UploadEndpoint : Endpoint, IEndpoint, IOpenApiSerializable, IOpenApiElement, IOpenApiExtension
- Inheritance
-
objectUploadEndpoint
- Implements
- Inherited Members
Properties
FormField
The name of the form field to place the uploaded data into. Leave empty for upload of raw bodies.
public string? FormField { get; set; }
Property Value
Kind
The kind/type of endpoint.
public override string Kind { get; }
Property Value
Methods
Parse(OpenApiObject, IEndpointParser)
Fills the endpoint with information parsed from an OpenAPI Object.
public override void Parse(OpenApiObject data, IEndpointParser parser)
Parameters
dataOpenApiObjectThe OpenAPI Object to parse.
parserIEndpointParserThe endpoint parser to use for parsing child objects.
WriteBody(IOpenApiWriter, OpenApiSpecVersion)
Writes this endpoint description to an OpenAPI document.
protected override void WriteBody(IOpenApiWriter writer, OpenApiSpecVersion specVersion)
Parameters
writerIOpenApiWriterThe write to write to.
specVersionOpenApiSpecVersionThe OpenAPI Spec version to use.