mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Fix for Swagger docs
This commit is contained in:
parent
e59665c88e
commit
3a0b246c09
@ -118,12 +118,12 @@ class ProjectApiController extends BaseAPIController
|
||||
* @SWG\Parameter(
|
||||
* in="body",
|
||||
* name="body",
|
||||
* @SWG\Schema(ref="#/definitions/project")
|
||||
* @SWG\Schema(ref="#/definitions/Project")
|
||||
* ),
|
||||
* @SWG\Response(
|
||||
* response=200,
|
||||
* description="New project",
|
||||
* @SWG\Schema(type="object", @SWG\Items(ref="#/definitions/project"))
|
||||
* @SWG\Schema(type="object", @SWG\Items(ref="#/definitions/Project"))
|
||||
* ),
|
||||
* @SWG\Response(
|
||||
* response="default",
|
||||
@ -155,12 +155,12 @@ class ProjectApiController extends BaseAPIController
|
||||
* @SWG\Parameter(
|
||||
* in="body",
|
||||
* name="project",
|
||||
* @SWG\Schema(ref="#/definitions/project")
|
||||
* @SWG\Schema(ref="#/definitions/Project")
|
||||
* ),
|
||||
* @SWG\Response(
|
||||
* response=200,
|
||||
* description="Updated project",
|
||||
* @SWG\Schema(type="object", @SWG\Items(ref="#/definitions/project"))
|
||||
* @SWG\Schema(type="object", @SWG\Items(ref="#/definitions/Project"))
|
||||
* ),
|
||||
* @SWG\Response(
|
||||
* response="default",
|
||||
@ -200,7 +200,7 @@ class ProjectApiController extends BaseAPIController
|
||||
* @SWG\Response(
|
||||
* response=200,
|
||||
* description="Deleted project",
|
||||
* @SWG\Schema(type="object", @SWG\Items(ref="#/definitions/project"))
|
||||
* @SWG\Schema(type="object", @SWG\Items(ref="#/definitions/Project"))
|
||||
* ),
|
||||
* @SWG\Response(
|
||||
* response="default",
|
||||
|
@ -5,10 +5,18 @@ namespace App\Ninja\Transformers;
|
||||
use App\Models\Credit;
|
||||
|
||||
/**
|
||||
* Class CreditTransformer.
|
||||
* @SWG\Definition(definition="Credit", required={"client_id"}, @SWG\Xml(name="Credit"))
|
||||
*/
|
||||
class CreditTransformer extends EntityTransformer
|
||||
{
|
||||
/**
|
||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
||||
* @SWG\Property(property="amount", type="number", format="float", example=10, readOnly=true)
|
||||
* @SWG\Property(property="client_id", type="integer", example=1)
|
||||
* @SWG\Property(property="private_notes", type="string", example="Notes...")
|
||||
* @SWG\Property(property="public_notes", type="string", example="Notes...")
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param Credit $credit
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user