openapi.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. openapi: 3.0.4
  2. info:
  3. title: API Documentation | ChatRPG
  4. version: 1.0.0
  5. description: API fro ChatRPG
  6. servers:
  7. - url: http://localhost:8000
  8. description: Development/local server
  9. tags:
  10. - name: User
  11. - name: Game
  12. components:
  13. schemas:
  14. User:
  15. $ref: "./components/schemas/user.yaml"
  16. Game:
  17. $ref: "./components/schemas/game.yaml"
  18. Character:
  19. $ref: "./components/schemas/character.yaml"
  20. Session:
  21. $ref: "./components/schemas/session.yaml"
  22. Turn:
  23. $ref: "./components/schemas/turn.yaml"
  24. responses:
  25. "400":
  26. $ref: "./components/responses/400.yaml"
  27. "401":
  28. $ref: "./components/responses/401.yaml"
  29. "403":
  30. $ref: "./components/responses/403.yaml"
  31. "404":
  32. $ref: "./components/responses/404.yaml"
  33. "500":
  34. $ref: "./components/responses/500.yaml"
  35. securitySchemes:
  36. $ref: "./components/security.yaml"
  37. paths:
  38. #Users
  39. /user:
  40. post:
  41. $ref: "./paths/user/create.yaml"
  42. get:
  43. $ref: "./paths/user/get_one.yaml"
  44. /user/login:
  45. post:
  46. $ref: "./paths/user/login.yaml"
  47. /user/logout:
  48. get:
  49. $ref: "./paths/user/logout.yaml"
  50. /user/payment-intent:
  51. post:
  52. $ref: "./paths/user/payment_intent.yaml"
  53. #Game
  54. /game:
  55. post:
  56. $ref: "./paths/game/create.yaml"