Skip to content

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

Description

@imbroglioj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions