Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/serializers/bson.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# BSON

BSON (Binary JSON) serialization is available in the .NET implementation of TypedRest.

=== "C#"

The BSON serializer provides efficient binary serialization using [Newtonsoft.Json](https://www.newtonsoft.com/json)'s BSON support:
Expand All @@ -16,3 +18,7 @@
- String enums with camel-case naming
- Null values are not serialized
- Automatic type name handling

## Content type

TODO: The serializer handles the `application/bson` content type.
4 changes: 4 additions & 0 deletions docs/serializers/json.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,7 @@ JSON is the default serialization format in TypedRest.
new URL("http://example.com/"),
new MySerializer());
```

## Content type

TODO: TypedRest automatically handle custom media types that end with `+json` (e.g., `application/vnd.api+json`, `application/hal+json`). These are treated as JSON and deserialized using the configured JSON serializer.
11 changes: 11 additions & 0 deletions docs/serializers/xml.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# XML

XML serialization is available in the .NET implementation of TypedRest.

=== "C#"
TODO: The XML serializer uses .NET's built-in `System.Xml.Serialization.XmlSerializer`:

```csharp
var endpoint = new EntryEndpoint(
new Uri("http://example.com/"),
serializer: new XmlSerializer());
```

## Content type

TODO: The serializer handles the following content types:

- `application/xml`
- `text/xml`
Loading