NSwag.SwaggerDocument.FromFile C# (CSharp) Method

FromFile() public static method

Creates a Swagger specification from a JSON file.
public static FromFile ( string filePath ) : SwaggerDocument
filePath string The file path.
return SwaggerDocument
        public static SwaggerDocument FromFile(string filePath)
        {
            var data = DynamicApis.FileReadAllText(filePath);
            return FromJson(data, filePath);
        }