Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Kong/Services/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand Down