Official Showcase Marketplace

Walsfab Couture Suite

Everday products for everyday needs, discover products and items and variants of their types.

NestJS Backend & API Console

Complete TypeScript source code with live mock REST endpoint execution and status logging.

NestJS Server Online
// src/products/products.controller.ts
import { Controller, Get, Post, Body, Param, Query, UseGuards, Req } from '@nestjs/common';
import { ApiTags, ApiOperation, ApiBearerAuth, ApiQuery } from '@nestjs/swagger';
import { ProductsService } from './products.service';
import { CreateProductDto } from './dto/create-product.dto';
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard';

@ApiTags('WalsFab Products & Media')
@Controller('api/v1/products')
export class ProductsController {
  constructor(private readonly productsService: ProductsService) {}

  @Get()
  @ApiOperation({ summary: 'Get filtered WalsFab products and video reels' })
  @ApiQuery({ name: 'category', required: false })
  @ApiQuery({ name: 'type', required: false })
  async findAll(
    @Query('category') category?: string,
    @Query('type') type?: string,
    @Query('search') search?: string,
  ) {
    return this.productsService.findAll({ category, type, search });
  }

  @Get(':id')
  @ApiOperation({ summary: 'Get product item by ID' })
  async findOne(@Param('id') id: string) {
    return this.productsService.findOne(id);
  }

  @Post()
  @UseGuards(JwtAuthGuard)
  @ApiBearerAuth()
  @ApiOperation({ summary: 'Create new couture item (Protected endpoint)' })
  async create(@Body() dto: CreateProductDto, @Req() req: any) {
    return this.productsService.create(dto, req.user);
  }
}

Interactive API Console

http://localhost:3000
Response Payload STATUS 200 OK
// Click any endpoint button above to test live NestJS API controllers...
Response Latency: 12ms
VIP Couture Member
NestJS JwtAuthGuard Token Bearer Valid

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI5ODc2NSIsImVtYWlsIjoic29waGlhQHdhbHNmYWIuY29tIiwiaWF0IjoxNzA5ODIxNx00fQ

Product
New
$0.00

Video Title

Streaming WalsFab Couture Reel HD via NestJS Static Stream

Notification message