All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aspnet-fastendpoints.requestClass.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{#operations}}
    {{#operation}}
public class {{operationId}}Request
{
    {{#pathParams}}
    /// 
    /// {{description}}
    /// 
    [FastEndpoints.BindFrom("{{baseName}}")]
    public {{&dataType}}{{^required}}{{#isNullable}}?{{/isNullable}}{{/required}} {{nameInPascalCase}} { get; set; }
    {{/pathParams}}
    {{#queryParams}}
    /// 
    /// {{description}}
    /// 
    [FastEndpoints.QueryParam, FastEndpoints.BindFrom("{{baseName}}")]
    public {{&dataType}}{{^required}}{{#isNullable}}?{{/isNullable}}{{/required}} {{nameInPascalCase}} { get; set; }
    {{/queryParams}}
    {{#bodyParams}}
    /// 
    /// {{description}}
    /// 
    [FastEndpoints.FromBody]
    public {{&dataType}}{{^required}}{{#isNullable}}?{{/isNullable}}{{/required}} {{paramName}} { get; set; }
    {{/bodyParams}}
    {{#formParams}}
    /// 
    /// {{description}}
    /// 
    [FastEndpoints.BindFrom("{{baseName}}")]
    public {{&dataType}}{{^required}}{{#isNullable}}?{{/isNullable}}{{/required}} {{nameInPascalCase}} { get; set; }
    {{/formParams}}
    {{#headerParams}}
    /// 
    /// {{description}}
    /// 
    [FastEndpoints.FromHeader]
    public {{&dataType}}{{^required}}{{#isNullable}}?{{/isNullable}}{{/required}} {{nameInPascalCase}} { get; set; }
    {{/headerParams}}
}
    {{/operation}}
{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy