Browse Source

chore(api): update documentation

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3962/head
Pranav C 2 years ago
parent
commit
fdb1335ae1
  1. 1
      packages/noco-docs/content/en/developer-resources/rest-apis.md
  2. 4
      packages/nocodb/src/lib/meta/api/utilApis.ts

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

@ -169,6 +169,7 @@ Currently, the default value for {orgs} is <b>noco</b>. Users will be able to ch
| Meta | Get | utils | appInfo | /api/v1/db/meta/nocodb/info | | Meta | Get | utils | appInfo | /api/v1/db/meta/nocodb/info |
| Meta | Get | utils | appVersion | /api/v1/version | | Meta | Get | utils | appVersion | /api/v1/version |
| Meta | Get | utils | appHealth | /api/v1/health | | Meta | Get | utils | appHealth | /api/v1/health |
| Meta | Get | utils | aggregatedMetaInfo | /api/v1/aggregated-meta-info |
## Query params ## Query params

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

@ -220,7 +220,7 @@ interface AllMeta {
sharedBaseCount: number; sharedBaseCount: number;
} }
export async function getAggregatedMetaInfo(_req: Request, res: Response) { export async function aggregatedMetaInfo(_req: Request, res: Response) {
const [projects, userCount] = await Promise.all([ const [projects, userCount] = await Promise.all([
Project.list({}), Project.list({}),
Noco.ncMeta.metaCount(null, null, MetaTable.USERS), Noco.ncMeta.metaCount(null, null, MetaTable.USERS),
@ -382,6 +382,6 @@ export default (router) => {
router.post('/api/v1/url_to_config', catchError(urlToDbConfig)); router.post('/api/v1/url_to_config', catchError(urlToDbConfig));
router.get( router.get(
'/api/v1/aggregated-meta-info', '/api/v1/aggregated-meta-info',
ncMetaAclMw(getAggregatedMetaInfo, 'getAggregatedMetaInfo') ncMetaAclMw(aggregatedMetaInfo, 'aggregatedMetaInfo')
); );
}; };

Loading…
Cancel
Save