Sometimes you have one endpoint that accepts different payloads with some type
identifier. While you can pass Resource
, Serializer
and Deserializer
to the Operation
, the Operation
tries to infer Resource
class from its name.
There are two ways to solve this:
You create Operation
for specific endpoint and dummy Resource
with Serializer
and Deserializer
. Then you create Resource
, Serializer
and Deserializer
for each type
you have and you pass these into the Operation
.