diff --git a/Kong/Services/Consumer.php b/Kong/Services/Consumer.php index 342eedc..17e673f 100644 --- a/Kong/Services/Consumer.php +++ b/Kong/Services/Consumer.php @@ -22,47 +22,47 @@ public function __construct(Client $client = null) public function create($body = []) { - return $this->client->post('/consumers/', ['body' => $body]); + return $this->client->post('consumers/', ['body' => $body]); } public function retrieve($consumer) { - return $this->client->get('/consumers/'.$consumer); + return $this->client->get('consumers/'.$consumer); } public function all($body = []) { - return $this->client->get('/consumers/', ['body' => $body]); + return $this->client->get('consumers/', ['body' => $body]); } public function update($consumer, $body = []) { - return $this->client->patch('/consumers/'.$consumer, ['body' => $body]); + return $this->client->patch('consumers/'.$consumer, ['body' => $body]); } public function updateOrCreate($body = []) { - return $this->client->put('/consumers/', ['body' => $body]); + return $this->client->put('consumers/', ['body' => $body]); } public function delete($consumer) { - return $this->client->delete('/consumers/'.$consumer); + return $this->client->delete('consumers/'.$consumer); } public function allCredentials($consumer, $credential, $body = []) { - return $this->client->get('/consumers/'.$consumer.'/'.$credential, ['body' => $body]); + return $this->client->get('consumers/'.$consumer.'/'.$credential, ['body' => $body]); } public function createCredential($consumer, $credential, $body = []) { - return $this->client->post('/consumers/'.$consumer.'/'.$credential, ['body' => $body]); + return $this->client->post('consumers/'.$consumer.'/'.$credential, ['body' => $body]); } public function deleteCredential($consumer, $credential, $id) { - return $this->client->delete('/consumers/'.$consumer.'/'.$credential.'/'.$id); + return $this->client->delete('consumers/'.$consumer.'/'.$credential.'/'.$id); } public function allPlugins($consumer, $body = [])