From 92fdcfa394f150649e139d0f6e5f20dc9df30153 Mon Sep 17 00:00:00 2001 From: Chakravarthi Medicharla Date: Thu, 7 Dec 2023 19:21:05 +0530 Subject: [PATCH] passwordless user creation api spec --- api_spec.yaml | 47 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/api_spec.yaml b/api_spec.yaml index dcbf9853..676ec562 100644 --- a/api_spec.yaml +++ b/api_spec.yaml @@ -1773,24 +1773,45 @@ paths: content: application/json: schema: - type: object - properties: - email: - type: string - password: - type: string + oneOf: + - type: object + properties: + email: + $ref: "#/components/schemas/email" + example: + email: "test@example.com" + required: + - email + - type: object + properties: + phoneNumber: + $ref: "#/components/schemas/phoneNumber" + required: + - phoneNumber responses: 200: - description: Success + description: signup response content: application/json: schema: - type: object - properties: - tags: - type: array - items: - type: string + oneOf: + - type: object + properties: + status: + type: string + default: "OK" + createdNewRecipeUser: + type: boolean + default: true + user: + $ref: "#/components/schemas/authRecipeUser" + recipeUserId: + $ref: "#/components/schemas/userId" + - type: object + properties: + status: + type: string + default: "FEATURE_NOT_ENABLED_ERROR" components: schemas: