diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index 20e7ed40c865..c2889d2bd9b5 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -185,6 +185,10 @@ class InvoiceController extends BaseController * @OA\Parameter(ref="#/components/parameters/X-Api-Token"), * @OA\Parameter(ref="#/components/parameters/X-Requested-With"), * @OA\Parameter(ref="#/components/parameters/include"), + * @OA\RequestBody( + * required=true, + * @OA\JsonContent(ref="#/components/schemas/FillableInvoice") + * ), * @OA\Response( * response=200, * description="Returns the saved invoice object", diff --git a/app/Http/Controllers/OpenAPI/FillableInvoiceSchema.php b/app/Http/Controllers/OpenAPI/FillableInvoiceSchema.php new file mode 100644 index 000000000000..3eb4d66027e5 --- /dev/null +++ b/app/Http/Controllers/OpenAPI/FillableInvoiceSchema.php @@ -0,0 +1,37 @@ +