Browse Source

add find-one in swagger docs

Signed-off-by: Vijay Kumar Rathore <professional.vijay8492@gmail.com>
pull/2465/head
Vijay Kumar Rathore 2 years ago committed by Pranav C
parent
commit
b2ac40efc2
  1. 21
      packages/nocodb/src/lib/meta/api/swagger/helpers/templates/paths.ts

21
packages/nocodb/src/lib/meta/api/swagger/helpers/templates/paths.ts

@ -166,6 +166,27 @@ export const getModelPaths = async (ctx: {
}
}
},
[`/api/v1/db/data/${ctx.orgs}/${ctx.projectName}/${ctx.tableName}/find-one`]: {
get: {
summary: `${ctx.tableName} find-one`,
operationId: 'db-table-row-find-one',
description: `Find first record matching the conditions.`,
tags: [ctx.tableName],
parameters: [fieldsParam, whereParam],
responses: {
'200': {
description: 'OK',
content: {
'application/json': {
schema: {
$ref: `#/components/schemas/${ctx.tableName}Response`
}
}
}
}
}
}
},
[`/api/v1/db/data/${ctx.orgs}/${ctx.projectName}/${ctx.tableName}/groupby`]: {
get: {
summary: `${ctx.tableName} groupby`,

Loading…
Cancel
Save