PublicationActivity/Controllers/PublicationsController.cs
/// <summary>
/// This endpoint is using POST action instead of GET to avoid encoding and decoding the huge number of filters in the query
/// </summary>
This endpoint is using POST action instead of GET to avoid encoding and decoding the huge number of filters in the query
This endpoint is using POST action instead of GET to avoid encoding and decoding the huge number of filters in the query
[HttpPost("filter")]
        [Authorize(PermissionsManager.SearchPublication)]
        public async Task<ActionResult<IEnumerable<PublicationDto>>> GetFilteredPublications([FromBody] PublicationDto filterDto)
        {
            return await this.publicationsService.GetFilteredPublications(filterDto);
        }
[ HttpPost ( " " ) ] [ Authorize ( PermissionsManager . SearchPublication ) ] public async Task < ActionResult < IEnumerable < PublicationDto > > > GetFilteredPublications ( [ FromBody ] PublicationDto filterDto ) { return await this . publicationsService . GetFilteredPublications ( filterDto ) ; }
This endpoint is using POST action instead of GET to avoid encoding and decoding the huge number of filters in the query
This endpoint is using POST action instead of GET to avoid encoding and decoding the huge number of filters in the query
PublicationDto
[FromBody]