Свойство | Type | Description | |
---|---|---|---|
GetOperationNameFromPath | string |
Méthode | 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.
|
Méthode | Description | |
---|---|---|
GetOperationNameFromPath ( |
public static FromFile ( string filePath ) : |
||
filePath | string | The file path. |
Résultat |
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. |
Résultat |
public static FromUrl ( string url ) : |
||
url | string | The URL. |
Résultat |
public SwaggerDocument ( ) : System.Collections.Generic | ||
Résultat | System.Collections.Generic |
public ToJson ( NJsonSchema.JsonSchemaGeneratorSettings jsonSchemaGenerator ) : string | ||
jsonSchemaGenerator | NJsonSchema.JsonSchemaGeneratorSettings | The json schema generator. |
Résultat | string |