openapi.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. openapi: 3.0.4
  2. info:
  3. title: API Documentation | Homo
  4. version: 1.0.0
  5. description: API for Homo, home automation software
  6. servers:
  7. - url: http://0.0.0.0:9123
  8. description: Development/local server
  9. tags:
  10. - name: User
  11. - name: Home
  12. components:
  13. schemas:
  14. User:
  15. $ref: "./components/schemas/user.yaml"
  16. Home:
  17. $ref: "./components/schemas/home.yaml"
  18. responses:
  19. "400":
  20. $ref: "./components/responses/400.yaml"
  21. "401":
  22. $ref: "./components/responses/401.yaml"
  23. "403":
  24. $ref: "./components/responses/403.yaml"
  25. "404":
  26. $ref: "./components/responses/404.yaml"
  27. "500":
  28. $ref: "./components/responses/500.yaml"
  29. securitySchemes:
  30. $ref: "./components/security.yaml"
  31. paths:
  32. #User
  33. /user:
  34. post:
  35. $ref: "./paths/user/create.yaml"
  36. get:
  37. $ref: "./paths/user/get_one.yaml"
  38. /user/login:
  39. post:
  40. $ref: "./paths/user/login.yaml"
  41. /user/logout:
  42. post:
  43. $ref: "./paths/user/logout.yaml"
  44. #Home
  45. /home:
  46. post:
  47. $ref: "./paths/home/create.yaml"
  48. get:
  49. $ref: "./paths/home/get_many.yaml"
  50. /home/{home_id}:
  51. delete:
  52. $ref: "./paths/home/delete.yaml"