|
|
@@ -0,0 +1,33 @@
|
|
|
+operationId: homeCrate
|
|
|
+summary: Create
|
|
|
+security: []
|
|
|
+description: Create new home for a user
|
|
|
+tags: [Home]
|
|
|
+requestBody:
|
|
|
+ content:
|
|
|
+ application/json:
|
|
|
+ schema:
|
|
|
+ type: object
|
|
|
+ required:
|
|
|
+ - name
|
|
|
+ properties:
|
|
|
+ name:
|
|
|
+ type: string
|
|
|
+ description: Name of the new home
|
|
|
+ example: Summer Home
|
|
|
+
|
|
|
+responses:
|
|
|
+ "200":
|
|
|
+ description: Home created
|
|
|
+ content:
|
|
|
+ application/json:
|
|
|
+ schema:
|
|
|
+ $ref: "#/components/schemas/Home"
|
|
|
+ "400":
|
|
|
+ $ref: "#/components/responses/400"
|
|
|
+ "401":
|
|
|
+ $ref: "#/components/responses/401"
|
|
|
+ "403":
|
|
|
+ $ref: "#/components/responses/403"
|
|
|
+ "500":
|
|
|
+ $ref: "#/components/responses/500"
|