示例#1
0
        public IActionResult GetUriStructureInfo(string name)
        {
            UriStructure uri = _configJsonHandler.GetUriStructure(name);

            if (uri != null)
            {
                List <ResourcesClass> resourceClass    = _configJsonHandler.GetResourceClass(name);
                InfoUriStructure      infoUriStructure = new InfoUriStructure();
                infoUriStructure.UriStructure   = uri;
                infoUriStructure.ResourcesClass = resourceClass;
                return(Ok(infoUriStructure));
            }
            else
            {
                return(BadRequest($"{{\"error\": \"No data of uriStructure {name}\"}}"));
            }
        }