PhalconRest\Export\Postman\ApiCollection::addCollection PHP Метод

addCollection() публичный Метод

public addCollection ( ApiCollection $collection )
$collection PhalconRest\Api\ApiCollection
    public function addCollection(\PhalconRest\Api\ApiCollection $collection)
    {
        foreach ($collection->getEndpoints() as $endpoint) {
            $this->addRequest(new Request($this->id, uniqid(), $collection->getPrefix() . $endpoint->getPath(), $endpoint->getDescription(), $this->basePath . $collection->getPrefix() . $endpoint->getPath(), $endpoint->getHttpMethod(), 'Authorization: Bearer {{authToken}}', null, "raw"));
        }
    }