PhalconRest\Export\Documentation\ApiEndpoint::getPath PHP Method

getPath() public method

public getPath ( )
    public function getPath()
    {
        return $this->path;
    }

Usage Example

 public function transform(DocumentationEndpoint $endpoint)
 {
     return ['name' => $endpoint->getName(), 'description' => $endpoint->getDescription(), 'httpMethod' => $endpoint->getHttpMethod(), 'path' => $endpoint->getPath(), 'exampleResponse' => $endpoint->getExampleResponse(), 'allowedRoles' => $endpoint->getAllowedRoles()];
 }