How should top-level array replies be implemented? #691
Unanswered
ixnoahlive
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
I'd personally make a wrapper class to add useful functions, getters and maps. If you want to make it helper oriented, you can map specific items such as owner to a Map then use Example: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm working on adding coverage for the Housing APIs and ran into an issue.
The entire API is basically built on the idea of responses being objects at the top level, but with Housing two of the three endpoints return an array. Is there a preferred way to implement this or should I just make something up like using a wrapper class or making a special get method for these types of responses?
Beta Was this translation helpful? Give feedback.
All reactions