fsharp-giraffe-server.ServiceInterface.mustache Maven / Gradle / Ivy
namespace {{packageName}}
open {{classname}}HandlerParams
open System
open Giraffe
open Microsoft.AspNetCore.Http
module {{classname}}ServiceInterface =
//#region Service interface
type I{{classname}}Service =
{{#operations}}
{{#operation}}
abstract member {{operationId}}:HttpContext {{#allParams}}{{#-first}}-> {{operationId}}Args{{/-first}}{{/allParams}}->{{operationId}}Result
{{/operation}}
{{/operations}}
//#endregion