wallet
This commit is contained in:
@@ -3,7 +3,15 @@ import { RestaurantsService } from '../providers/restaurants.service';
|
||||
import { CreateRestaurantDto } from '../dto/create-restaurant.dto';
|
||||
import { UpdateRestaurantDto } from '../dto/update-restaurant.dto';
|
||||
import { AdminAuthGuard } from 'src/modules/auth/guards/adminAuth.guard';
|
||||
import { ApiBearerAuth, ApiBody, ApiNotFoundResponse, ApiOperation, ApiParam, ApiTags } from '@nestjs/swagger';
|
||||
import {
|
||||
ApiBearerAuth,
|
||||
ApiBody,
|
||||
ApiNotFoundResponse,
|
||||
ApiOperation,
|
||||
ApiParam,
|
||||
ApiTags,
|
||||
ApiHeader,
|
||||
} from '@nestjs/swagger';
|
||||
import { RestId } from 'src/common/decorators';
|
||||
|
||||
@ApiTags('restaurants')
|
||||
@@ -13,6 +21,7 @@ export class RestaurantsController {
|
||||
|
||||
@Get('public/restaurants/:slug')
|
||||
@ApiOperation({ summary: 'Get restaurant specification by slug' })
|
||||
@ApiHeader({ name: 'X-Slug', required: true, description: 'Restaurant slug identifier', example: 'zhivan' })
|
||||
@ApiParam({ name: 'slug', required: true, description: 'Restaurant slug' })
|
||||
@ApiNotFoundResponse({ description: 'Restaurant not found' })
|
||||
findBySlug(@Param('slug') slug: string) {
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
ApiBody,
|
||||
ApiBearerAuth,
|
||||
ApiQuery,
|
||||
ApiHeader,
|
||||
} from '@nestjs/swagger';
|
||||
import { ScheduleService } from '../providers/schedule.service';
|
||||
import { CreateScheduleDto } from '../dto/create-schedule.dto';
|
||||
@@ -25,6 +26,7 @@ export class ScheduleController {
|
||||
|
||||
@Get('public/schedules/restaurant/:slug')
|
||||
@ApiOperation({ summary: 'Get schedule of a restaurant by slug' })
|
||||
@ApiHeader({ name: 'X-Slug', required: true, description: 'Restaurant slug identifier', example: 'zhivan' })
|
||||
@ApiParam({ name: 'slug', description: 'Restaurant Slug' })
|
||||
@ApiOkResponse({ description: 'Today schedule of the restaurant', type: Schedule })
|
||||
async getTodaySchedules(@Param('slug') slug: string): Promise<Schedule[]> {
|
||||
|
||||
Reference in New Issue
Block a user