create.yaml 701 B

123456789101112131415161718192021222324252627282930313233
  1. operationId: homeCrate
  2. summary: Create
  3. security: []
  4. description: Create new home for a user
  5. tags: [Home]
  6. requestBody:
  7. content:
  8. application/json:
  9. schema:
  10. type: object
  11. required:
  12. - name
  13. properties:
  14. name:
  15. type: string
  16. description: Name of the new home
  17. example: Summer Home
  18. responses:
  19. "200":
  20. description: Home created
  21. content:
  22. application/json:
  23. schema:
  24. $ref: "#/components/schemas/Home"
  25. "400":
  26. $ref: "#/components/responses/400"
  27. "401":
  28. $ref: "#/components/responses/401"
  29. "403":
  30. $ref: "#/components/responses/403"
  31. "500":
  32. $ref: "#/components/responses/500"