This commit is contained in:
David Bomba 2019-10-06 22:24:54 +11:00
parent cf67589f23
commit 897e4855c1
3 changed files with 14 additions and 18 deletions

View File

@ -141,10 +141,11 @@ class LoginController extends BaseController
* @OA\JsonContent(ref="#/components/schemas/Company"),
* ),
* @OA\Response(response=400, description="Bad request"),
* security={
* {"": {}}
* }
* @OA\Response(
* response="default",
* description="Unexpected Error",
* @OA\JsonContent(ref="#/components/schemas/Error"),
* ),
* )
*
* @OA\Response(

View File

@ -3,22 +3,8 @@
/**
* @OA\Schema(
* schema="Company",
* allOf={
* @OA\Schema(
* @OA\Property(property="id", type="string", example="WJxbojagwO", description="The company hash id"),
* @OA\Property(property="name", type="string", example="The local shop", description="The company name"),
* @OA\Property(property="logo", type="object", example="logo.png", description="The company logo - binary"),
* @OA\Property(property="logo_url", type="string", example="http://example.com/logo.png", description="The company logo url"),
* )
* }
* )
*/
/**
* @OA\Schema(
* schema="product_id",
* type="integer",
* format="int64",
* description="The unique identifier of a product in our catalog"
* )
*/

View File

@ -0,0 +1,9 @@
<?php
/**
* @OA\Schema(
* schema="Error",
* type="object",
* @OA\Property(property="message", type="string", example="Unexpected error", description="The company name"),
* @OA\Property(property="code", type="int32", example="500", description="The HTTP error code"),
* )
*/