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

getHttpMethod() public method

public getHttpMethod ( )
    public function getHttpMethod()
    {
        return $this->httpMethod;
    }

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()];
 }