File

src/url/dtos/url.dto.ts

Index

Properties

Properties

Readonly url
Type : string
Decorators :
@ApiProperty({description: 'URL to shorten', example: 'https://app.opensauced.pizza', type: 'string'})
@IsString()
import { ApiProperty } from "@nestjs/swagger";
import { IsString } from "class-validator";

export class UrlShortenerDto {
  @ApiProperty({
    description: "URL to shorten",
    example: "https://app.opensauced.pizza",
    type: "string",
  })
  @IsString()
  readonly url: string;
}

results matching ""

    No results matching ""