From 15349017147d5f50e3f8287df458af1e1d05cb2e Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 16 Mar 2023 18:08:12 +0800 Subject: [PATCH] feat(nocodb): include more examples --- packages/nocodb/src/schema/swagger.json | 63 ++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index c9663e15aa..0857312f25 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -1461,16 +1461,75 @@ "x-stoplight": { "id": "waau9tvy75zsd" }, - "description": "Success Message", + "description": "Success Message for inviting single email", "example": "The user has been invited successfully" + }, + "invite_token": { + "type": "string", + "x-stoplight": { + "id": "yx0s35u8ds3p7" + }, + "example": "8354ddba-a769-4d64-8397-eccb2e2b3c06" + }, + "error": { + "type": "array", + "x-stoplight": { + "id": "yhfi6wzhr6zr1" + }, + "items": { + "x-stoplight": { + "id": "ce0hlv3d0f96j" + }, + "type": "object", + "properties": { + "email": { + "type": "string", + "x-stoplight": { + "id": "dgnh01j4lxvl1" + }, + "example": "w@nocodb.com" + }, + "error": { + "type": "string", + "x-stoplight": { + "id": "7dgttqiijg8no" + }, + "example": "" + } + } + } + }, + "email": { + "type": "string", + "x-stoplight": { + "id": "08pqst2q30vot" + }, + "example": "w@nocodb.com" } } }, "examples": { - "Example 1": { + "Inviting a user without any errors": { "value": { "msg": "The user has been invited successfully" } + }, + "Inviting a user but invitation email failed to send": { + "value": { + "invite_token": "8354ddba-a769-4d64-8397-eccb2e2b3c06", + "email": "w@nocodb.com" + } + }, + "Inviting multiple users": { + "value": { + "invite_token": "8354ddba-a769-4d64-8397-eccb2e2b3c06", + "error": [ + { + "email": "w@nocodb.com", + "error": "" + } + ] + } } } }