From 06150ce30ab7bc8498f2f8a4a186f9c010d1124c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 3 Nov 2016 21:36:05 +1100 Subject: [PATCH] add show() Client --- app/Http/Controllers/ClientApiController.php | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/app/Http/Controllers/ClientApiController.php b/app/Http/Controllers/ClientApiController.php index 918b9c701ef1..4f6ca6521c62 100644 --- a/app/Http/Controllers/ClientApiController.php +++ b/app/Http/Controllers/ClientApiController.php @@ -1,5 +1,6 @@ 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",