Hi,
How do I GET data by using the "cost-per-night" url? ID works fine, but that's
the only thing that does.
www.example.com/app/default/api/patterns gives me this:
/room_owner[room_owner]
/room-owner/id/{room_owner.id}
/room-owner/id/{room_owner.id}/:field
/room-owner/cost-per-night/{room_owner.cost_per_night.ge}/{room_owner.cost_per_night.lt}
/room-owner/cost-per-night/{room_owner.cost_per_night.ge}/{room_owner.cost_per_night.lt}/:field
Desired result -
www.example.com/app/default/api/room_owner
Desired result -
www.example.com/app/default/api/room-owner/id/1.json
NOT Desired -
www.example.com/app/default/api/room-owner/cost-per-night/25.json
How do I make the last query work?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.