Свойство | Тип | Описание | |
---|---|---|---|
DefaultSampleObjectFactory | object | ||
GetAllActionSamples | object>>.IEnumerable | ||
GetSampleObject | object | ||
IsFormatSupported | bool | ||
ResolveType | Type | ||
TryFormatJson | string | ||
TryFormatXml | string | ||
UnwrapException | Exception | ||
WrapSampleIfString | object | ||
WriteSampleObjectUsingFormatter | object |
Метод | Описание | |
---|---|---|
GetActionSample ( string controllerName, string actionName, IEnumerable |
Search for samples that are provided directly through ActionSamples.
|
|
GetSample ( ApiDescription api, SampleDirection sampleDirection ) : object>.IDictionary |
Gets the request or response body samples.
|
|
GetSampleRequests ( ApiDescription api ) : object>.IDictionary |
Gets the request body samples for a given ApiDescription.
|
|
GetSampleResponses ( ApiDescription api ) : object>.IDictionary |
Gets the response body samples for a given ApiDescription.
|
|
HelpPageSampleGenerator ( ) : System |
Initializes a new instance of the HelpPageSampleGenerator class.
|
|
ResolveHttpRequestMessageType ( ApiDescription api ) : Type |
Resolves the actual type of System.Net.Http.ObjectContent{T} passed to the System.Net.Http.HttpRequestMessage in an action.
|
Метод | Описание | |
---|---|---|
DefaultSampleObjectFactory ( HelpPageSampleGenerator sampleGenerator, Type type ) : object | ||
GetAllActionSamples ( string controllerName, string actionName, IEnumerable |
||
GetSampleObject ( Type type ) : object | ||
IsFormatSupported ( SampleDirection sampleDirection, MediaTypeFormatter formatter, Type type ) : bool | ||
ResolveType ( ApiDescription api, string controllerName, string actionName, IEnumerable |
||
TryFormatJson ( string str ) : string | ||
TryFormatXml ( string str ) : string | ||
UnwrapException ( Exception exception ) : Exception | ||
WrapSampleIfString ( object sample ) : object | ||
WriteSampleObjectUsingFormatter ( MediaTypeFormatter formatter, object value, Type type, MediaTypeHeaderValue mediaType ) : object |
public GetActionSample ( string controllerName, string actionName, IEnumerable |
||
controllerName | string | Name of the controller. |
actionName | string | Name of the action. |
parameterNames | IEnumerable |
The parameter names. |
type | Type | The CLR type. |
formatter | MediaTypeFormatter | The formatter. |
mediaType | MediaTypeHeaderValue | The media type. |
sampleDirection | SampleDirection | The value indicating whether the sample is for a request or for a response. |
Результат | object |
public GetSample ( ApiDescription api, SampleDirection sampleDirection ) : object>.IDictionary |
||
api | ApiDescription | The |
sampleDirection | SampleDirection | The value indicating whether the sample is for a request or for a response. |
Результат | object>.IDictionary |
public GetSampleRequests ( ApiDescription api ) : object>.IDictionary |
||
api | ApiDescription | The |
Результат | object>.IDictionary |
public GetSampleResponses ( ApiDescription api ) : object>.IDictionary |
||
api | ApiDescription | The |
Результат | object>.IDictionary |
public HelpPageSampleGenerator ( ) : System | ||
Результат | System |
public ResolveHttpRequestMessageType ( ApiDescription api ) : Type | ||
api | ApiDescription | The |
Результат | Type |