openapi.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. Device:
  19. $ref: "./components/schemas/device.yaml"
  20. responses:
  21. "400":
  22. $ref: "./components/responses/400.yaml"
  23. "401":
  24. $ref: "./components/responses/401.yaml"
  25. "403":
  26. $ref: "./components/responses/403.yaml"
  27. "404":
  28. $ref: "./components/responses/404.yaml"
  29. "500":
  30. $ref: "./components/responses/500.yaml"
  31. securitySchemes:
  32. $ref: "./components/security.yaml"
  33. paths:
  34. #User
  35. /user:
  36. post:
  37. $ref: "./paths/user/create.yaml"
  38. get:
  39. $ref: "./paths/user/get_one.yaml"
  40. /user/login:
  41. post:
  42. $ref: "./paths/user/login.yaml"
  43. /user/logout:
  44. post:
  45. $ref: "./paths/user/logout.yaml"
  46. #Home
  47. /home:
  48. post:
  49. $ref: "./paths/home/create.yaml"
  50. get:
  51. $ref: "./paths/home/get_many.yaml"
  52. /home/{home_id}:
  53. delete:
  54. $ref: "./paths/home/delete.yaml"