NSwag.SwaggerDocument.FromFile C# (CSharp) Метод

FromFile() публичный статический Метод

Creates a Swagger specification from a JSON file.
public static FromFile ( string filePath ) : SwaggerDocument
filePath string The file path.
Результат SwaggerDocument
        public static SwaggerDocument FromFile(string filePath)
        {
            var data = DynamicApis.FileReadAllText(filePath);
            return FromJson(data, filePath);
        }