initial
This commit is contained in:
34
regular.cs.tmpl
Normal file
34
regular.cs.tmpl
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user