cqrs-manager-for-distributed-reactive-services
cqrs-manager-for-distributed-reactive-services copied to clipboard
Media Types
As a third-party producer, how do I know what commands are available and what data elements are required for each command? Media types solve this problem as they identify the form of the data contained within a HTTP request or response message body.
I noticed that the code mentions media types (and hypermedia!) Yay!), so I thought I'd propose some ideas for media types. I suspect that Commander will need at least two media types: one for commands and one for events.
I propose that we aggregate ideas in this issue for now, but each media type will probably need it's own issue (or Wiki page) in the future.
Siren has some interesting ideas. The Siren media type includes an optional actions
key and and an optional fields
key that are similar to Commander's (required?) action
and data
keys.
@statonjr Thanks for the suggestion (both in person and for documenting here), and for generally interesting conversations at Strange Loop!
I also noticed that you signed the CLA, so thank you for that. If you have a free moment to submit a PR, that would be welcome, even on a throw-away spike basis to start a discussion. However, I know time is limited, so we'll continue to track this enhancement here as well.