Skip to content

Handling complex object payloads in API Responses #4

Answered by nickclarity
nickclarity asked this question in Q&A
Discussion options

You must be logged in to vote

Further Elaboration

For the example of the rule instance payload, I'm not sure how it is being stored, but the schema a rule type is well defined at /rules/v2/types/{typeID} but itself could be considered a dynamic response type. The purpose of rules/v2 as I understand it was specifically to structure the routes in this way for maintainability. As new rule types are added, they didn't want to continue to add new routes to service those rule types. Also, specifically for Rules Management, a rule type and rule instances are entities, so returning them as JSON object would be preferred. However, how we define routes, queries and response types might also have implications in other services t…

Replies: 4 comments 11 replies

Comment options

nickclarity
Mar 10, 2022
Collaborator Author

You must be logged in to vote
7 replies
@eggilbert
Comment options

@travisgosselin
Comment options

@eggilbert
Comment options

@nickclarity
Comment options

nickclarity Mar 14, 2022
Collaborator Author

@travisgosselin
Comment options

Answer selected by travisgosselin
Comment options

You must be logged in to vote
1 reply
@travisgosselin
Comment options

Comment options

You must be logged in to vote
1 reply
@travisgosselin
Comment options

Comment options

You must be logged in to vote
2 replies
@travisgosselin
Comment options

@acchristensen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
minor-change Small non-breaking modification to existing API Standard details.
5 participants