openapi.yaml 979 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. responses:
  16. "400":
  17. $ref: "./components/responses/400.yaml"
  18. "401":
  19. $ref: "./components/responses/401.yaml"
  20. "403":
  21. $ref: "./components/responses/403.yaml"
  22. "404":
  23. $ref: "./components/responses/404.yaml"
  24. "500":
  25. $ref: "./components/responses/500.yaml"
  26. securitySchemes:
  27. $ref: "./components/security.yaml"
  28. paths:
  29. #Users
  30. /user:
  31. post:
  32. $ref: "./paths/user/create.yaml"
  33. get:
  34. $ref: "./paths/user/get_one.yaml"
  35. /user/login:
  36. post:
  37. $ref: "./paths/user/login.yaml"
  38. /user/logout:
  39. get:
  40. $ref: "./paths/user/logout.yaml"
  41. /user/payment-intent:
  42. post:
  43. $ref: "./paths/user/payment_intent.yaml"