Class MasterApiController
- Namespace
- JJMasterData.WebApi.Controllers
- Assembly
- JJMasterData.WebApi.dll
[Authorize]
[ApiController]
[ApiExplorerSettings(IgnoreApi = true)]
[Route("masterApi/{elementName}")]
public class MasterApiController : ControllerBase
- Inheritance
-
MasterApiController
- Inherited Members
Constructors
MasterApiController(MasterApiService)
public MasterApiController(MasterApiService service)
Parameters
service
MasterApiService
Methods
Delete(string, string)
[HttpDelete]
public Task<ActionResult<ResponseLetter>> Delete(string elementName, string id)
Parameters
Returns
Get(string, string)
[HttpGet]
[Produces<Dictionary<string, object>>]
[Route("{id}")]
public Task<ActionResult<Dictionary<string, object?>>> Get(string elementName, string id)
Parameters
Returns
GetAll(string, int, int, string?, int?)
[HttpGet]
[Produces<MasterApiListResponse>]
[Route("")]
public Task<ActionResult<MasterApiListResponse>> GetAll(string elementName, int pag = 1, int regporpag = 1000, string? orderby = null, int? tot = 0)
Parameters
Returns
Patch(Dictionary<string, object?>[], string)
[HttpPatch]
public Task<ActionResult<ResponseLetter>> Patch(Dictionary<string, object?>[] listParam, string elementName)
Parameters
listParam
Dictionary<string, object>[]elementName
string
Returns
Post(Dictionary<string, object?>[], string, bool)
[HttpPost]
public Task<ActionResult<ResponseLetter>> Post(Dictionary<string, object?>[] listParam, string elementName, bool replace = false)
Parameters
listParam
Dictionary<string, object>[]elementName
stringreplace
bool
Returns
PostTrigger(string, Dictionary<string, object>?, PageState, string)
[HttpPost]
[Produces<FormValues[]>]
[Route("trigger/{pageState?}/{objname?}")]
public Task<ActionResult<ResponseLetter>> PostTrigger(string elementName, Dictionary<string, object>? paramValues, PageState pageState, string objname = "")
Parameters
Returns
Put(Dictionary<string, object?>[], string)
[HttpPut]
public Task<ActionResult<ResponseLetter>> Put(Dictionary<string, object?>[] listParam, string elementName)
Parameters
listParam
Dictionary<string, object>[]elementName
string