feroult / yawp

Kotlin/Java API framework for Google Appengine
http://yawp.io
MIT License
132 stars 20 forks source link

Support multi-part paths for Endpoints #54

Closed feroult closed 8 years ago

feroult commented 8 years ago

For example:

@Endpoint(path = "/store/orders")
public class Order

This will be useful to organize APIs into a tree-like structure.

luanpotter commented 8 years ago

Would this have the same effect as nested resources (with @ParentId)? Or is it something else?

feroult commented 8 years ago

This is something else. This is just a prefix for all routes belonging to this endpoint, including custom actions.

I haven't thought yet about the implications if the endpoint has a @ParentId. But it seems that this prefix can't be mixed with the Parent/Child routes.