crnk-project / crnk-framework

JSON API library for Java
Apache License 2.0
287 stars 156 forks source link

Documentation/Examples Explaining How To Support CSV Serializer #604

Open Nezteb opened 5 years ago

Nezteb commented 5 years ago

The features page lists:

Not limited to JSON:API through a flexible, resource-oriented architecture. Serializers allow to implement other REST protocols or support for formats like CSV/Excel.

How does one implement their own serializer within Crnk?

I've seen some references in the docs to @JsonSerialize(using = <some class>), but I see no examples or documentation that elaborates on this.

remmeier commented 5 years ago

sorry for the late replyy. There is for example the crnk-format-plain-json project which implements a slightly different, simplified API endpoint. It is contributed to crnk-core with PlainJsonFormatModule with a custom HttpRequestProcessor. This project could servce as a template how to implement other things like CSV or GraphQL support.