Rest Service path
Posted by Chris87 on January 22, 2015 at 4:34pm
Hi,
I have been playing with the Services module for a couple of days. According to REST API best practices, the GET URL paths I want to use are:
/buildings
/buildings/4
/buildings/4/rooms
/buildings/4/rooms/5
'Building' and 'room' are both content types, and '4' and '5', the node-ids.
Using the Services module, I can create the following calls:
/node/type=building
/node/4
And with the Services Views module, I can customise the path a little more:
/buildings
But the only way to get a specific building is by:
/buildings?nid=4