Skip to main content
Glama
create-todo.dto.ts554 B
import { ApiProperty } from '@nestjs/swagger'; import { IsNotEmpty, IsOptional, IsString, MinLength } from 'class-validator'; export class CreateTodoDto { @ApiProperty({ description: 'The title of the TODO item', minLength: 3, example: 'Buy milk', }) @IsString() @IsNotEmpty() @MinLength(3) title: string; @ApiProperty({ description: 'A detailed description of the TODO item', required: false, example: 'Go to the supermarket and buy 2 liters of milk', }) @IsString() @IsOptional() description?: string; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/javascripto/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server