/* Options: Date: 2024-12-22 21:15:25 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateTodo.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface IPost { } export class Todo { public id: number; public text: string; public isFinished: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/todos", "POST") export class CreateTodo implements IReturn, IPost { // @Validate(Validator="NotEmpty") public text: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CreateTodo'; } public getMethod() { return 'POST'; } public createResponse() { return new Todo(); } }