create.yaml 715 B

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