Model mapping PoC (#15546)
* First take at new models for improved mapping between client and server * Add variants to Media * Re-introduced lost names * Start breaking apart "Id" reference properties in request models as well * Refactor to fix OpenAPI spec * Discard TODO (not relevant) * Split recycle bin response models * Delete unused marker interface * Use reference properties for content and media type handling * Rework document and media types to be explicit in relations (do not expose "content type", it is an implementation detail) * Mapping for document and media type copy + move * Ensure correct response model for Media * Regenerate OpenAPI JSON after forward merge * Fix forward merge issues * Fix forward merge + regenerate OpenApi.json * Added unit tests for content state helper * Move "allowed document types" endpoint to document type silo, refactored services and added "allowed media types" * Regenerate OpenApi.json after forward merge * Do not include content state for media items * Review fix
This commit is contained in:
@@ -19,8 +19,8 @@ public class RootDictionaryTreeController : DictionaryTreeControllerBase
|
||||
|
||||
[HttpGet("root")]
|
||||
[MapToApiVersion("1.0")]
|
||||
[ProducesResponseType(typeof(PagedViewModel<EntityTreeItemResponseModel>), StatusCodes.Status200OK)]
|
||||
public async Task<ActionResult<PagedViewModel<EntityTreeItemResponseModel>>> Root(int skip = 0, int take = 100)
|
||||
[ProducesResponseType(typeof(PagedViewModel<NamedEntityTreeItemResponseModel>), StatusCodes.Status200OK)]
|
||||
public async Task<ActionResult<PagedViewModel<NamedEntityTreeItemResponseModel>>> Root(int skip = 0, int take = 100)
|
||||
{
|
||||
if (PaginationService.ConvertSkipTakeToPaging(skip, take, out var pageNumber, out var pageSize, out ProblemDetails? error) == false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user