Просмотр исходного кода

Create docs for user registration path.

Lee Morgan 2 месяцев назад
Родитель
Сommit
dbe6872ad0
2 измененных файлов с 403 добавлено и 0 удалено
  1. 48 0
      docs/paths/user/create.yaml
  2. 355 0
      docs/redoc-static.html

+ 48 - 0
docs/paths/user/create.yaml

@@ -0,0 +1,48 @@
+operationId: userCreate
+summary: Create
+security: []
+description: User registration
+tags: [User]
+requestBody:
+  content:
+    application/json:
+      schema:
+        type: object
+        required:
+          - name
+          - email
+          - password
+          - confirm_password
+        properties:
+          name:
+            type: string
+            description: Name of new user
+            example: John Smith
+          email:
+            type: string
+            format: email
+            description: Email of new user
+            example: john.smith@mail.com
+          password:
+            type: string
+            description: Password for new user
+            example: johnsmith123
+          confirm_password:
+            type: string
+            description: Confirmation of password
+            example: johnsmith123
+
+responses:
+  "200":
+    description: "New user created (always returns '{success: true}')"
+    content:
+      application/json:
+        schema:
+          type: object
+          properties:
+            success:
+              type: boolean
+  "400":
+    $ref: "#/components/responses/400"
+  "500":
+    $ref: "#/components/responses/500"

Разница между файлами не показана из-за своего большого размера
+ 355 - 0
docs/redoc-static.html


Некоторые файлы не были показаны из-за большого количества измененных файлов