openapi.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. components:
  12. schemas:
  13. User:
  14. $ref: "./components/schemas/user.yaml"
  15. Game:
  16. $ref: "./components/schemas/game.yaml"
  17. Character:
  18. $ref: "./components/schemas/character.yaml"
  19. Session:
  20. $ref: "./components/schemas/session.yaml"
  21. Turn:
  22. $ref: "./components/schemas/turn.yaml"
  23. responses:
  24. "400":
  25. $ref: "./components/responses/400.yaml"
  26. "401":
  27. $ref: "./components/responses/401.yaml"
  28. "403":
  29. $ref: "./components/responses/403.yaml"
  30. "404":
  31. $ref: "./components/responses/404.yaml"
  32. "500":
  33. $ref: "./components/responses/500.yaml"
  34. securitySchemes:
  35. $ref: "./components/security.yaml"
  36. paths:
  37. #Users
  38. /user:
  39. post:
  40. $ref: "./paths/user/create.yaml"
  41. get:
  42. $ref: "./paths/user/get_one.yaml"
  43. /user/login:
  44. post:
  45. $ref: "./paths/user/login.yaml"
  46. /user/logout:
  47. get:
  48. $ref: "./paths/user/logout.yaml"
  49. /user/payment-intent:
  50. post:
  51. $ref: "./paths/user/payment_intent.yaml"