-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing Nested Resources #67
Comments
Hey @lucasob, So I'd actually made things generic enough with the original implementation to allow for this.
And plug it through so that RAW_GET folds down to GET later. Not very pretty though..
Not a huge fan of this either, as it implies it's nesting off the entire set of CRUD operations, rather than just the GET.. Happy to look at a PR if you want to have a crack at implementing either of these above, or a more involved approach like what you've suggested. As long as the endpoints are easy to view at a glance and extend. |
Hey -- Thanks so much for quick response. I'll give this a good whirl and get something back to you asap. Thanks! |
Hey!
Not sure what people's opinions are here for implementing access to nested resources. One such example is the Spend Money Attachments:
/{cf_uri}/Banking/SpendMoneyTxn/{Spend_Money_UID}/Attachment
The current implementation is fantastic and delightfully extensible for top-level resources, but doesn't make for easy implementation (at least to me) when querying nested resources.
Did anyone have any implementation ideas to get around this issue? I have one but it would involve a very large refactoring which isn't by any means ideal.
This idea would just centre around the below (using python-ish pseudocode)
I am open to a way of trying to include the current managers but I'm not sure how that would look.
Thanks!
The text was updated successfully, but these errors were encountered: