You are here

public function ServicesContentTypeNegotiator::getParsedCanonicalPath in Services 7.3

Parse canonical path. It may have extension in the end (example node/1.json). This function returns canonical path without extension.

Parameters

string $canonical_path:

Return value

string Canonical path without extension.

File

servers/rest_server/includes/ServicesContentTypeNegotiator.inc, line 37

Class

ServicesContentTypeNegotiator
Class used to do Content Type negotiation.

Code

public function getParsedCanonicalPath($canonical_path) {
  $matches = $this
    ->getCanonicalPathMatches($canonical_path);
  return $matches[1];
}