Table of Contents

Class DictionariesController

Namespace
JJMasterData.WebApi.Controllers
Assembly
JJMasterData.WebApi.dll
[Authorize]
[ApiController]
[Route("api/dictionaries")]
public class DictionariesController : ControllerBase
Inheritance
DictionariesController
Inherited Members

Constructors

DictionariesController(DictionariesService, IDataDictionaryRepository)

public DictionariesController(DictionariesService dictionariesService, IDataDictionaryRepository dataDictionaryRepository)

Parameters

dictionariesService DictionariesService
dataDictionaryRepository IDataDictionaryRepository

Methods

Count(DicSyncParam[])

Returns the number of records modified from a specific date.

[HttpPost]
[Route("count")]
public Task<ActionResult<DicSyncInfo>> Count(DicSyncParam[] param)

Parameters

param DicSyncParam[]

List of dictionaries to be checked

Returns

Task<ActionResult<DicSyncInfo>>

Get(string)

Get a specific data dictionary.

[HttpGet]
[Route("{id}")]
public ValueTask<FormElement> Get(string id)

Parameters

id string

Element Name

Returns

ValueTask<FormElement>

GetAll()

Get all dictionaries with sync enabled.

[HttpGet]
[Produces<List<FormElement>>]
[Route("")]
public Task<ActionResult<List<FormElement>>> GetAll()

Returns

Task<ActionResult<List<FormElement>>>