DarkaOnLine / L5-Swagger

OpenApi or Swagger integration to Laravel
https://github.com/DarkaOnLine/L5-Swagger
MIT License
2.64k stars 394 forks source link

Setting body params ContentType:Application/json #153

Closed usmanhafeez147 closed 6 years ago

usmanhafeez147 commented 6 years ago

how to write syntax for Swagger form data as JSON format. I tried to find out solution couldn't resolve it. I tried RequestBody but its not worked for me

trigger_error("[Semantical Error] The annotation "@Swagger\Annotations\RequestBody\RequestBody" in \App\Http\Controllers\API\AuthController->login() in E:\wamp64\www\splitwise\app\Http\Controllers\API\AuthController.php on line 17 does not exist, or could not be auto-loaded.")

DarkaOnLine commented 6 years ago

Please read the documentation on how to write annotations. This a great start point: https://github.com/zircote/swagger-php/tree/master/Examples

ooiginla commented 4 years ago

https://github.com/zircote/swagger-php/blob/master/Examples/example-object/example-object.php