mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
OpenAPI
This commit is contained in:
parent
cf67589f23
commit
897e4855c1
@ -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(
|
||||
|
@ -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"
|
||||
* )
|
||||
*/
|
9
app/Http/Controllers/OpenAPI/ErrorSchema.php
Normal file
9
app/Http/Controllers/OpenAPI/ErrorSchema.php
Normal 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"),
|
||||
* )
|
||||
*/
|
Loading…
x
Reference in New Issue
Block a user