This commit is contained in:
2021-11-18 19:27:39 +01:00
commit e616a7cb60
7 changed files with 229 additions and 0 deletions

34
regular.cs.tmpl Normal file
View File

@ -0,0 +1,34 @@
$GENERATED_CS_COMMENT
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Microsoft.AspNetCore.Authorization;
using Swashbuckle.AspNetCore.SwaggerGen;
using Newtonsoft.Json;
using ${env['packagename']}.Attributes;
using ${env['packagename']}.Models;
using ${env['packagename']}.Controllers;
namespace ${env['packagename']}.Implementations
{
public class RegularApiImplementation : RegularApiController
{
#for $operation in $operations
public override IActionResult ${operation['func']}() {
return new ObjectResult();
}
#end for
public override IActionResult CyclesStartCycle([FromBody]MCycle mCycle) {
return StatusCode(200, default(MCycle));
}
public override IActionResult CyclesStopCycle([FromBody]CycleId cycleId) {
throw new NotImplementedException();
}
}
}