|
|
@ -8,6 +8,7 @@ import { |
|
|
|
getNestedParams, |
|
|
|
getNestedParams, |
|
|
|
limitParam, |
|
|
|
limitParam, |
|
|
|
offsetParam, |
|
|
|
offsetParam, |
|
|
|
|
|
|
|
shuffleParam, |
|
|
|
referencedRowIdParam, |
|
|
|
referencedRowIdParam, |
|
|
|
relationTypeParam, |
|
|
|
relationTypeParam, |
|
|
|
rowIdParam, |
|
|
|
rowIdParam, |
|
|
@ -35,6 +36,7 @@ export const getModelPaths = async (ctx: { |
|
|
|
sortParam, |
|
|
|
sortParam, |
|
|
|
whereParam, |
|
|
|
whereParam, |
|
|
|
limitParam, |
|
|
|
limitParam, |
|
|
|
|
|
|
|
shuffleParam, |
|
|
|
offsetParam, |
|
|
|
offsetParam, |
|
|
|
...(await getNestedParams(ctx.columns)) |
|
|
|
...(await getNestedParams(ctx.columns)) |
|
|
|
], |
|
|
|
], |
|
|
@ -198,6 +200,7 @@ export const getModelPaths = async (ctx: { |
|
|
|
sortParam, |
|
|
|
sortParam, |
|
|
|
whereParam, |
|
|
|
whereParam, |
|
|
|
limitParam, |
|
|
|
limitParam, |
|
|
|
|
|
|
|
shuffleParam, |
|
|
|
offsetParam |
|
|
|
offsetParam |
|
|
|
], |
|
|
|
], |
|
|
|
responses: { |
|
|
|
responses: { |
|
|
@ -375,7 +378,7 @@ export const getModelPaths = async (ctx: { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
tags: [ctx.tableName], |
|
|
|
tags: [ctx.tableName], |
|
|
|
parameters: [limitParam, offsetParam] |
|
|
|
parameters: [limitParam, offsetParam, shuffleParam] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
[`/api/v1/db/data/${ctx.orgs}/${ctx.projectName}/${ctx.tableName}/{rowId}/{relationType}/{columnName}/{refRowId}`]: { |
|
|
|
[`/api/v1/db/data/${ctx.orgs}/${ctx.projectName}/${ctx.tableName}/{rowId}/{relationType}/{columnName}/{refRowId}`]: { |
|
|
@ -399,7 +402,7 @@ export const getModelPaths = async (ctx: { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
tags: [ctx.tableName], |
|
|
|
tags: [ctx.tableName], |
|
|
|
parameters: [limitParam, offsetParam], |
|
|
|
parameters: [limitParam, offsetParam, shuffleParam], |
|
|
|
description: '' |
|
|
|
description: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
delete: { |
|
|
|
delete: { |
|
|
@ -439,7 +442,7 @@ export const getModelPaths = async (ctx: { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
tags: [ctx.tableName], |
|
|
|
tags: [ctx.tableName], |
|
|
|
parameters: [limitParam, offsetParam] |
|
|
|
parameters: [limitParam, offsetParam, shuffleParam] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|