handlebars.aspnetcore.icontroller.mustache Maven / Gradle / Ivy
{{>partial_header}}
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using {{packageName}}.Models;
namespace {{packageName}}.Controllers
{ {{#operations}}
///
/// {{description}}
/// {{#description}}
[Description("{{description}}")]{{/description}}
public interface I{{classname}}Controller
{ {{#operation}}
{{#contents}}
///
/// {{#summary}}{{summary}}{{/summary}}
///
{{#notes}}/// {{notes}} {{/notes}}{{#parameters}}
/// {{description}}{{/parameters}}{{#responses}}
/// {{message}} {{/responses}}
IActionResult {{operationId}}({{#parameters}}{{>pathParam}}{{>queryParam}}{{>bodyParam}}{{>formParam}}{{>headerParam}}{{#hasMore}}, {{/hasMore}}{{/parameters}});
{{/contents}}
{{/operation}}
}
{{/operations}}
}