api.php 684 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @OA\OpenApi(
  4. * @OA\Info(
  5. * version="1.0.0",
  6. * title="Swagger Petstore",
  7. * @OA\License(name="MIT")
  8. * ),
  9. * @OA\Server(
  10. * description="Api server",
  11. * url="petstore.swagger.io",
  12. * ),
  13. * )
  14. */
  15. /**
  16. * @OA\Schema(
  17. * schema="Error",
  18. * required={"code", "message"},
  19. * @OA\Property(
  20. * property="code",
  21. * type="integer",
  22. * format="int32"
  23. * ),
  24. * @OA\Property(
  25. * property="message",
  26. * type="string"
  27. * )
  28. * ),
  29. * @OA\Schema(
  30. * schema="Pets",
  31. * type="array",
  32. * @OA\Items(ref="#/components/schemas/Pet")
  33. * )
  34. */