Update Ip.php
push changes that didnt come through from test env
This commit is contained in:
parent
76759d8e53
commit
2fbd9ab040
1 changed files with 10 additions and 15 deletions
|
|
@ -5,57 +5,52 @@ namespace wickedsoft\NetBox\Api;
|
||||||
class Ip extends AbstractApi
|
class Ip extends AbstractApi
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @see https://www.hostfact.nl/developer/api/crediteuren/add
|
|
||||||
* @param $params
|
* @param $params
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||||
*/
|
*/
|
||||||
public function add($params)
|
public function add($params=[])
|
||||||
{
|
{
|
||||||
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'add'], $params));
|
return $this->post("/ipam/ip-addresses/", $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://www.hostfact.nl/developer/api/crediteuren/delete
|
|
||||||
* @param $params
|
* @param $params
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||||
*/
|
*/
|
||||||
public function delete($params)
|
public function delete($id, $params=[])
|
||||||
{
|
{
|
||||||
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'delete'], $params));
|
return $this->delete("/ipam/ip-addresses/".$id."/", $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://www.hostfact.nl/developer/api/crediteuren/edit
|
|
||||||
* @param $params
|
* @param $params
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||||
*/
|
*/
|
||||||
public function edit($params)
|
public function edit($id, $params=[])
|
||||||
{
|
{
|
||||||
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'edit'], $params));
|
return $this->put("/ipam/ip-addresses/".$id."/", $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://www.hostfact.nl/developer/api/crediteuren/list
|
|
||||||
* @param $params
|
* @param $params
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||||
*/
|
*/
|
||||||
public function list($params)
|
public function list($params=[])
|
||||||
{
|
{
|
||||||
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'list'], $params));
|
return $this->get("/ipam/ip-addresses/", $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://www.hostfact.nl/developer/api/crediteuren/show
|
|
||||||
* @param $params
|
* @param $params
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||||
*/
|
*/
|
||||||
public function show($params)
|
public function show($id, $params=[])
|
||||||
{
|
{
|
||||||
return $this->post(array_merge(['controller' => 'creditor', 'action' => 'show'], $params));
|
return $this->get("/ipam/ip-addresses/".$id."/", $params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue