Skip to content

Request and Response mapping

Ahmad K. Bawaneh edited this page Feb 16, 2020 · 2 revisions

Request and Response mapping

The (de)serialization of request and response in domino-rest from/to JSON will be automatically generated for the POJOs, if the Request body bean or the response bean is annotated with @JSONMapper then domino-rest will use the generated mappers,if not annotated it will generate mappers for those beans.

for more about supported JSON types please checkout domino-jackson

the JSON mapping will be applied only if the MediaType is of json type.

also if the MediaType is plain text type, domino-rest will use the string representation of body and response instead of JSON.

for other MediaTypes please check the Produces and Consumes section of this wiki.