示例#1
0
        public async Task <IActionResult> FindCollections([FromBody] FindCollectionsRequest request)
        {
            try
            {
                var userKey = _contextAccessor.UserKeyFromContext();

                //TODO: need to filter out collections the user doesn't have access to
                var matchingCollections = await _hiarcDatabase.FindCollections(request);

                return(Ok(matchingCollections));
            }
            catch (Exception ex)
            {
                return(BuildErrorResponse(ex, _logger));
            }
        }