Skip to content

Commit

Permalink
#fix: thuanvv fix api document
Browse files Browse the repository at this point in the history
  • Loading branch information
VanThuan76 committed Jan 11, 2025
1 parent 89dd432 commit 1b15ef1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/web/routes/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ export default async function documentRoutes(fastify: FastifyRouteInstance) {
type: 'object',
properties: {
language: { type: 'string', description: 'Language code (e.g., vi, en, etc.)' },
document_type_id: { type: 'string', description: 'ID of pages database' }
document_type_id: { type: 'string', description: 'ID of pages database' },
size: { type: 'number', description: 'Size number of records (e.g., 10.)' },
page: { type: 'number', description: 'Page number of database (e.g., 1.)' }
},
required: ['language', 'document_type_id'],
required: ['language', 'document_type_id', 'size', 'page'],
},
response: {
200: {
Expand Down

0 comments on commit 1b15ef1

Please sign in to comment.