api.php 792 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @OA\OpenApi(
  4. * @OA\Server(
  5. * url="petstore.swagger.io",
  6. * description="API server"
  7. * ),
  8. * @OA\Info(
  9. * version="1.0.0",
  10. * title="Swagger Petstore",
  11. * description="A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
  12. * termsOfService="http://swagger.io/terms/",
  13. * @OA\Contact(name="Swagger API Team"),
  14. * @OA\License(name="MIT")
  15. * ),
  16. * )
  17. */
  18. /**
  19. * @OA\Schema(
  20. * schema="ErrorModel",
  21. * required={"code", "message"},
  22. * @OA\Property(
  23. * property="code",
  24. * type="integer",
  25. * format="int32"
  26. * ),
  27. * @OA\Property(
  28. * property="message",
  29. * type="string"
  30. * )
  31. * )
  32. */