feat: complete backend swagger annotations, admin pages pagination, and frontend application fixes
This commit is contained in:
1 parent
24137beb32
commit
2851ef8a25
41 files changed
+478
-128
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { Controller, Get, Param, HttpStatus } from '@nestjs/common';
|
||||
import { Controller, Get, Param, HttpStatus, Query } from '@nestjs/common';
|
||||
import { WikiService } from './wiki.service';
|
||||
import { ApiTags, ApiOperation, ApiResponse, ApiOkResponse, ApiNotFoundResponse } from '@nestjs/swagger';
|
||||
import { PaginationDto } from '../common/dto/pagination.dto';
|
||||
|
||||
@ApiTags('Wiki - دانشنامه ترکیبات')
|
||||
@Controller('wiki')
|
||||
@@ -13,9 +14,9 @@ export class WikiController {
|
||||
|
||||
@Get()
|
||||
@ApiOperation({ summary: 'دریافت تمام کلمات دانشنامه' })
|
||||
@ApiOkResponse({ description: 'لیست تمامی ترکیبات علمی' })
|
||||
findAll() {
|
||||
return this.wikiService.findAll();
|
||||
@ApiOkResponse({ description: 'لیست کلمات به همراه توضیحات (صفحهبندی شده)' })
|
||||
findAll(@Query() query: PaginationDto) {
|
||||
return this.wikiService.findAll(query);
|
||||
}
|
||||
|
||||
@Get(':key')
|
||||
|
||||
Reference in new issue
Block a user