Exemple #1
0
        public async Task <ActionResult <string> > Get(string org, string repository, string modelPath)
        {
            var developer = AuthenticationHelper.GetDeveloperUserName(HttpContext);
            var json      = await _schemaModelService.GetSchema(org, repository, developer, modelPath);

            return(Ok(json));
        }
Exemple #2
0
        public async Task <ActionResult <string> > Get([FromRoute] string org, [FromRoute] string repository, [FromRoute] string modelPath)
        {
            var decodedPath = System.Uri.UnescapeDataString(modelPath);

            var developer = AuthenticationHelper.GetDeveloperUserName(HttpContext);
            var json      = await _schemaModelService.GetSchema(org, repository, developer, decodedPath);

            return(Ok(json));
        }