Browse Source

fix: update health & version url

pull/2460/head
Wing-Kam Wong 2 years ago
parent
commit
eaaf4fd101
  1. 4
      packages/noco-docs/content/en/developer-resources/rest-apis.md
  2. 8
      packages/nocodb-sdk/src/lib/Api.ts
  3. 4
      packages/nocodb/src/lib/meta/api/utilApis.ts
  4. 4
      scripts/sdk/swagger.json

4
packages/noco-docs/content/en/developer-resources/rest-apis.md

@ -166,8 +166,8 @@ Currently, the default value for {orgs} is <b>noco</b>. Users will be able to ch
| Meta | Delete| utils | cacheDelete | /api/v1/db/meta/cache |
| Meta | Post | utils | testConnection | /api/v1/db/meta/projects/connection/test |
| Meta | Get | utils | appInfo | /api/v1/db/meta/nocodb/info |
| Meta | Get | utils | appVersion | /api/v1/db/meta/nocodb/version |
| Meta | Get | utils | appHealth | /api/v1/db/meta/nocodb/health |
| Meta | Get | utils | appVersion | /api/v1/version |
| Meta | Get | utils | appHealth | /api/v1/health |
## Query params

8
packages/nocodb-sdk/src/lib/Api.ts

@ -3197,12 +3197,12 @@ export class Api<
*
* @tags Utils
* @name AppVersion
* @request GET:/api/v1/db/meta/nocodb/version
* @request GET:/api/v1/version
* @response `200` `any` OK
*/
appVersion: (params: RequestParams = {}) =>
this.request<any, any>({
path: `/api/v1/db/meta/nocodb/version`,
path: `/api/v1/version`,
method: 'GET',
format: 'json',
...params,
@ -3213,12 +3213,12 @@ export class Api<
*
* @tags Utils
* @name AppHealth
* @request GET:/api/v1/db/meta/nocodb/health
* @request GET:/api/v1/health
* @response `200` `any` OK
*/
appHealth: (params: RequestParams = {}) =>
this.request<any, any>({
path: `/api/v1/db/meta/nocodb/health`,
path: `/api/v1/health`,
method: 'GET',
format: 'json',
...params,

4
packages/nocodb/src/lib/meta/api/utilApis.ts

@ -140,7 +140,7 @@ export default router => {
ncMetaAclMw(testConnection, 'testConnection')
);
router.get('/api/v1/db/meta/nocodb/info', catchError(appInfo));
router.get('/api/v1/db/meta/nocodb/version', catchError(releaseVersion));
router.get('/api/v1/db/meta/nocodb/health', catchError(appHealth));
router.post('/api/v1/db/meta/axiosRequestMake', catchError(axiosRequestMake));
router.get('/api/v1/version', catchError(releaseVersion));
router.get('/api/v1/health', catchError(appHealth));
};

4
scripts/sdk/swagger.json

@ -5107,7 +5107,7 @@
]
}
},
"/api/v1/db/meta/nocodb/version": {
"/api/v1/version": {
"parameters": [],
"get": {
"summary": "",
@ -5128,7 +5128,7 @@
"description": ""
}
},
"/api/v1/db/meta/nocodb/health": {
"/api/v1/health": {
"parameters": [],
"get": {
"summary": "",

Loading…
Cancel
Save