mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
add show() Client
This commit is contained in:
parent
293811d5ca
commit
06150ce30a
@ -1,5 +1,6 @@
|
|||||||
<?php namespace App\Http\Controllers;
|
<?php namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Http\Requests\ClientRequest;
|
||||||
use Response;
|
use Response;
|
||||||
use Input;
|
use Input;
|
||||||
use App\Models\Client;
|
use App\Models\Client;
|
||||||
@ -52,6 +53,31 @@ class ClientApiController extends BaseAPIController
|
|||||||
return $this->listResponse($clients);
|
return $this->listResponse($clients);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @SWG\Get(
|
||||||
|
* path="/clients/{client_id}",
|
||||||
|
* summary="Individual Client",
|
||||||
|
* tags={"client"},
|
||||||
|
* @SWG\Response(
|
||||||
|
* response=200,
|
||||||
|
* description="A single client",
|
||||||
|
* @SWG\Schema(type="object", @SWG\Items(ref="#/definitions/Client"))
|
||||||
|
* ),
|
||||||
|
* @SWG\Response(
|
||||||
|
* response="default",
|
||||||
|
* description="an ""unexpected"" error"
|
||||||
|
* )
|
||||||
|
* )
|
||||||
|
*/
|
||||||
|
|
||||||
|
public function show(ClientRequest $request)
|
||||||
|
{
|
||||||
|
return $this->itemResponse($request->entity());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SWG\Post(
|
* @SWG\Post(
|
||||||
* path="/clients",
|
* path="/clients",
|
||||||
|
Loading…
Reference in New Issue
Block a user