Property | Type | Description | |
---|---|---|---|
GetOperationNameFromPath | string |
Method | Description | |
---|---|---|
FromFile ( string filePath ) : |
Creates a Swagger specification from a JSON file.
|
|
FromJson ( string data, string documentPath = null ) : |
Creates a Swagger specification from a JSON string.
|
|
FromUrl ( string url ) : |
Creates a Swagger specification from an URL.
|
|
GenerateOperationIds ( ) : void |
Generates missing or non-unique operation IDs.
|
|
SwaggerDocument ( ) : System.Collections.Generic |
Initializes a new instance of the SwaggerDocument class.
|
|
ToJson ( ) : string |
Converts the description object to JSON.
|
|
ToJson ( NJsonSchema.JsonSchemaGeneratorSettings jsonSchemaGenerator ) : string |
Converts the description object to JSON.
|
Method | Description | |
---|---|---|
GetOperationNameFromPath ( |
public static FromFile ( string filePath ) : |
||
filePath | string | The file path. |
return |
public static FromJson ( string data, string documentPath = null ) : |
||
data | string | The JSON data. |
documentPath | string | The document path (URL or file path) for resolving relative document references. |
return |
public static FromUrl ( string url ) : |
||
url | string | The URL. |
return |
public SwaggerDocument ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public ToJson ( NJsonSchema.JsonSchemaGeneratorSettings jsonSchemaGenerator ) : string | ||
jsonSchemaGenerator | NJsonSchema.JsonSchemaGeneratorSettings | The json schema generator. |
return | string |