Esempio n. 1
0
        public IActionResult Get(string id)
        {
            var definition = _repo.Get(id);
            var generator  = new SwaggerGenerator(definition);
            var jsonString = generator.Generate();

            //var jsonString = System.IO.File.ReadAllText("dynamic_swagger.json");
            var json = JsonConvert.DeserializeObject(jsonString);

            return(Json(json));
        }