function restws_resource_uri in RESTful Web Services 7
Same name and namespace in other branches
- 7.2 restws.module \restws_resource_uri()
Returns the URI used for the given resource.
4 calls to restws_resource_uri()
- RestWSBaseFormat::getResourceReference in ./
restws.formats.inc - RestWSFormatRDF::addReference in ./
restws.formats.inc - RestWSFormatRDF::viewResource in ./
restws.formats.inc - Gets the representation of a resource.
- RestWSFormatXML::setXMLReference in ./
restws.formats.inc
File
- ./
restws.module, line 350 - RESTful web services module.
Code
function restws_resource_uri($resource, $id) {
// Avoid having the URLs aliased.
return url($resource . '/' . $id, array(
'absolute' => TRUE,
'alias' => TRUE,
));
}