Method | Description | |
---|---|---|
GetPerRequestFormatterInstance ( |
Returns a specialized instance of the T:System.Net.Http.Formatting.MediaTypeFormatter that can format a response for the given parameters.
|
|
JsonApiMediaTypeFormatter ( IContractResolver contractResolver ) : System |
Constructor.
|
|
JsonApiMediaTypeFormatter ( IContractResolver contractResolver, IFieldNamingStrategy fieldNamingStratgey ) : System |
Constructor.
|
Method | Description | |
---|---|---|
CanReadOrWrite ( |
Returns a value indicating whether or not the dictionary has a metadata mapping for the given type.
|
|
CreatePatch ( |
Creates an instance of the patch object for the media type.
|
|
DeserializeValue ( |
Deserialize an object.
|
|
SerializeValue ( |
Serialize the value into an JSON AST.
|
Method | Description | |
---|---|---|
JsonApiMediaTypeFormatter ( IContractResolver contractResolver, IFieldNamingStrategy fieldNamingStratgey, bool prettify ) : System |
Constructor.
|
protected CanReadOrWrite ( |
||
type | The element type to test for a mapping. | |
return | bool |
protected CreatePatch ( |
||
type | The type of the inner instance that is being patched. | |
contractResolver | IContractResolver | The contract resolver. |
jsonValue | JsonLite.Ast.JsonValue | The JSON value that represents the patch values. |
return | IPatch |
protected DeserializeValue ( |
||
type | The type of the object to deserialize. | |
jsonValue | JsonLite.Ast.JsonValue | The JSON value that represents the object to deserialize. |
return | object |
public GetPerRequestFormatterInstance ( |
||
type | The type to format. | |
request | The request. | |
mediaType | The media type. | |
return | System.Net.Http.Formatting.MediaTypeFormatter |
public JsonApiMediaTypeFormatter ( IContractResolver contractResolver ) : System | ||
contractResolver | IContractResolver | The resource contract resolver used to resolve the contracts at runtime. |
return | System |
public JsonApiMediaTypeFormatter ( IContractResolver contractResolver, IFieldNamingStrategy fieldNamingStratgey ) : System | ||
contractResolver | IContractResolver | The resource contract resolver used to resolve the contracts at runtime. |
fieldNamingStratgey | IFieldNamingStrategy | The field naming strategy to use. |
return | System |
protected SerializeValue ( |
||
type | The type to serialize from. | |
value | object | The value to serialize. |
return | JsonLite.Ast.JsonValue |