Browse Source

refactor(nocodb): user model in swagger.json

pull/5222/head
Wing-Kam Wong 2 years ago
parent
commit
d1b76840c5
  1. 98
      packages/nocodb/src/schema/swagger.json

98
packages/nocodb/src/schema/swagger.json

@ -24,7 +24,8 @@
"type": "object", "type": "object",
"properties": { "properties": {
"token": { "token": {
"type": "string" "type": "string",
"description": "The signed JWT token for information exchange"
} }
} }
}, },
@ -109,7 +110,8 @@
"type": "object", "type": "object",
"properties": { "properties": {
"msg": { "msg": {
"type": "string" "type": "string",
"description": "Success Message"
} }
} }
} }
@ -201,14 +203,12 @@
"examples": { "examples": {
"example-1": { "example-1": {
"value": { "value": {
"id": "string", "id": "us_8kugj628ebjngs",
"email": "string", "email": "user@nocodb.com",
"email_verified": "string", "email_verified": true,
"firstname": "string", "firstname": "Alice",
"lastname": "string", "lastname": "Smith",
"roles": { "roles": "org-level-viewer"
"editor": true
}
} }
} }
} }
@ -7181,59 +7181,64 @@
"User": { "User": {
"title": "User", "title": "User",
"type": "object", "type": "object",
"description": "",
"examples": [ "examples": [
{ {
"id": "142", "id": "us_8kugj628ebjngs",
"firstName": "Alice", "firstName": "Alice",
"lastName": "Smith", "lastName": "Smith",
"email": "alice.smith@gmail.com", "email": "alice.smith@nocodb.com",
"dateOfBirth": "1997-10-31", "roles": "org-level-viewer",
"emailVerified": true, "email_verified": true,
"signUpDate": "2019-08-24" "created_at": "2023-03-01 11:36:49",
"updated_at": "2023-03-01 11:36:49"
} }
], ],
"x-internal": false, "x-internal": false,
"description": "User Model Response",
"properties": { "properties": {
"id": { "id": {
"type": "string", "type": "string",
"description": "Unique identifier for the given user." "description": "Unique identifier for the given user.",
"example": "us_8kugj628ebjngs"
}, },
"firstname": { "firstname": {
"type": "string" "type": "string",
"description": "The first name of the user",
"example": "Alice"
}, },
"lastname": { "lastname": {
"type": "string" "type": "string",
"description": "The last name of the user",
"example": "Smith"
}, },
"email": { "email": {
"type": "string", "type": "string",
"format": "email" "format": "email",
"description": "The email of the user",
"example": "alice.smith@nocodb.com"
}, },
"roles": { "roles": {
"type": "string"
},
"date_of_birth": {
"type": "string", "type": "string",
"format": "date", "description": "The roles of the user",
"example": "1997-10-31" "example": "org-level-viewer"
}, },
"email_verified": { "email_verified": {
"type": "boolean", "type": "boolean",
"description": "Set to true if the user's email has been verified." "description": "Set to true if the user's email has been verified."
}, },
"createDate": { "created_at": {
"type": "string",
"format": "date-time",
"description": "The date that the user was created.",
"example": "2023-03-01 11:36:49"
},
"updated_at": {
"type": "string", "type": "string",
"format": "date", "format": "date-time",
"description": "The date that the user was created." "description": "The date that the user was created.",
"example": "2023-03-01 11:36:49"
} }
}, }
"required": [
"id",
"firstname",
"lastname",
"email",
"email_verified"
]
}, },
"UserList": { "UserList": {
"description": "", "description": "",
@ -10445,23 +10450,32 @@
"UserInfo": { "UserInfo": {
"title": "UserInfo", "title": "UserInfo",
"type": "object", "type": "object",
"description": "User Info Model",
"properties": { "properties": {
"id": { "id": {
"type": "string" "type": "string",
"description": "User ID"
}, },
"email": { "email": {
"type": "string" "type": "string",
"description": "User Email",
"format": "email"
}, },
"email_verified": { "email_verified": {
"type": "string" "type": "boolean",
"description": "Set to true if the user's email has been verified."
}, },
"firstname": { "firstname": {
"type": "string" "type": "string",
"description": "The firstname of the user"
}, },
"lastname": { "lastname": {
"type": "string" "type": "string",
"description": "The lastname of the user"
}, },
"roles": {} "roles": {
"description": "The roles of the user"
}
} }
}, },
"VisibilityRuleReq": { "VisibilityRuleReq": {

Loading…
Cancel
Save