mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
add show() Client
This commit is contained in:
parent
293811d5ca
commit
06150ce30a
@ -1,5 +1,6 @@
|
||||
<?php namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Requests\ClientRequest;
|
||||
use Response;
|
||||
use Input;
|
||||
use App\Models\Client;
|
||||
@ -52,6 +53,31 @@ class ClientApiController extends BaseAPIController
|
||||
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(
|
||||
* path="/clients",
|
||||
|
Loading…
Reference in New Issue
Block a user