mercredi 23 décembre 2020

Swagger annotation error 500 in php laravel 5

 *
 *    @SWG\Get(
 *      path="/billing/invoice",
 *      tags={"Invoices"},
 *      operationId="getinvoices",
 *      summary="Get all invoices.",
 *      @SWG\Response(
 *          response=200,
 *          description="success",
 *          @SWG\Schema(ref="common/Billing/invoices/Invoice"),
 *      ),
 *      @SWG\Response(
 *          response="default",
 *          description="error",
 *          @SWG\Schema(ref="app/Error"),
 *      ),
 *  )

I'm writing swagger annotation in PHP laravel 5 using swagger version 1.0.0. I got 500 response code. I'm giving the correct module reference but get 500, 403 and 405 response code. Can anyone figure out what is my mistake?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire