aspnet-fastendpoints.requestClass.mustache Maven / Gradle / Ivy
{{#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