public async Task <IActionResult> GetSwagger(string app)
        {
            var schemas = await appProvider.GetSchemasAsync(AppId);

            var swaggerDocument = await schemasSwaggerGenerator.Generate(App, schemas);

            return(Content(swaggerDocument.ToJson(), "application/json"));
        }
        public async Task <IActionResult> GetSwagger(string app)
        {
            var schemas = await schemaRepository.QueryAllAsync(App.Id);

            var swaggerDocument = await schemasSwaggerGenerator.Generate(App, schemas);

            return(Content(swaggerDocument.ToJson(), "application/json"));
        }
        public async Task <IActionResult> GetSwagger(string app)
        {
            var appEntity = await appProvider.FindAppByNameAsync(app);

            if (appEntity == null)
            {
                return(NotFound());
            }

            var schemas = await schemaRepository.QueryAllWithSchemaAsync(appEntity.Id);

            var swaggerDocument = await schemasSwaggerGenerator.Generate(appEntity, schemas);

            return(Content(swaggerDocument.ToJson(), "application/json"));
        }