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)); }
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)); }