Skip to content

Commit

Permalink
#update: thuanvv update new api-3
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvanthuan committed Jan 20, 2025
1 parent 4f40289 commit 378c477
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/web/routes/activity-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ export default async function activityClassRoutes(fastify: FastifyRouteInstance)
type: 'object',
properties: {
id: { type: 'integer', nullable: true },
class: {
type: 'object',
properties: {
id: { type: 'string' },
name: { type: 'string', nullable: true },
description: { type: 'string', nullable: true },
image: { type: 'string', nullable: true },
},
nullable: false,
},
name: { type: 'string', nullable: true },
image_url: { type: 'string', nullable: true },
status: { type: 'integer' },
Expand Down
11 changes: 10 additions & 1 deletion src/web/routes/student-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,16 @@ export default async function studentResultRoutes(fastify: FastifyRouteInstance)
type: 'object',
properties: {
id: { type: 'integer', nullable: true },
class_name: { type: 'string', nullable: true },
class: {
type: 'object',
properties: {
id: { type: 'string' },
name: { type: 'string', nullable: true },
description: { type: 'string', nullable: true },
image: { type: 'string', nullable: true },
},
nullable: false,
},
name: { type: 'string', nullable: true },
description: { type: 'string', nullable: true },
result_image: { type: 'string' },
Expand Down

0 comments on commit 378c477

Please sign in to comment.