Browse Source

fix: remove xc-auth from swagger authorize

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/9543/head
Raju Udava 3 months ago
parent
commit
c7c483516e
  1. 12
      packages/nocodb/src/schema/swagger-v2.json
  2. 11
      packages/nocodb/src/schema/swagger.json
  3. 6
      packages/nocodb/src/services/api-docs/swagger/swagger-base.json
  4. 6
      packages/nocodb/src/services/api-docs/swaggerV2/swagger-base.json

12
packages/nocodb/src/schema/swagger-v2.json

@ -22535,23 +22535,23 @@
} }
}, },
"parameters": { "parameters": {
"xc-auth": { "xc-token": {
"name": "xc-auth", "name": "xc-token",
"in": "header", "in": "header",
"required": true, "required": true,
"schema": { "schema": {
"type": "string" "type": "string"
}, },
"description": "Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN." "description": "API Token. Refer [here](https://docs.nocodb.com/account-settings/api-tokens/) to know more"
}, },
"xc-token": { "xc-auth": {
"name": "xc-token", "name": "xc-auth",
"in": "header", "in": "header",
"required": true, "required": true,
"schema": { "schema": {
"type": "string" "type": "string"
}, },
"description": "API Token. Refer [here](https://docs.nocodb.com/account-settings/api-tokens/) to know more" "description": "Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN."
} }
} }
} }

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

@ -27626,10 +27626,19 @@
} }
}, },
"parameters": { "parameters": {
"xc-token": {
"name": "xc-token",
"in": "header",
"required": true,
"schema": {
"type": "string"
},
"description": "API Token. Refer [here](https://docs.nocodb.com/account-settings/api-tokens/) to know more"
},
"xc-auth": { "xc-auth": {
"name": "xc-auth", "name": "xc-auth",
"in": "header", "in": "header",
"required": false, "required": true,
"schema": { "schema": {
"type": "string" "type": "string"
}, },

6
packages/nocodb/src/services/api-docs/swagger/swagger-base.json

@ -71,12 +71,6 @@
} }
}, },
"securitySchemes": { "securitySchemes": {
"xcAuth": {
"type": "apiKey",
"in": "header",
"name": "xc-auth",
"description": "JWT access token"
},
"xcToken": { "xcToken": {
"type": "apiKey", "type": "apiKey",
"in": "header", "in": "header",

6
packages/nocodb/src/services/api-docs/swaggerV2/swagger-base.json

@ -70,12 +70,6 @@
} }
}, },
"securitySchemes": { "securitySchemes": {
"xcAuth": {
"type": "apiKey",
"in": "header",
"name": "xc-auth",
"description": "JWT access token"
},
"xcToken": { "xcToken": {
"type": "apiKey", "type": "apiKey",
"in": "header", "in": "header",

Loading…
Cancel
Save