api.php 933 B

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