Skip to content
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

Resourceful's restful engine appears only superficially compatible with the Restful module #140

Open
imbroglioj opened this issue Mar 22, 2013 · 0 comments

Comments

@imbroglioj
Copy link

Example: the Restful module understands parent-child relationships, but it expects a specific syntax, typically: /parenttype/parentID/childtype/.../. (The 'child-method-test' in the Restful module is a good example of the syntax)

The resourceful.restful engine when given a "parent.children(..) call appears to try /childtype/find (followed presumably by filtering). This only works if all children are explicitly declared in the Restful module server. Even if you declare all the children explicitly in the server, the mismatch appears with other relational calls.

If I have declared only the parent in the server, the correct Restful syntax will find the children (using curl), but the resourceful.restful syntax will not.

(I'm using Mongodb for the ultimate backing store, but that should not make a difference).

I may be misunderstanding the intent of the restful engine. If not, I could cobble together a test by cannibalizing Restful's child-method-test. -- JB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant