# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-09-01 21:48:34 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net #MakePartial: True #MakeVirtual: True #MakeInternal: False #MakeDataContractsExtensible: False #AddReturnMarker: True #AddDescriptionAsComments: True #AddDataContractAttributes: False #AddIndexesToDataMembers: False #AddGeneratedCodeAttributes: False #AddResponseStatus: False #AddImplicitVersion: #InitializeCollections: False #ExportValueTypes: False IncludeTypes: UpdateTodo.* #ExcludeTypes: #AddNamespaces: #AddDefaultXmlNamespace: http://schemas.servicestack.net/types =end require 'json' require 'servicestack' module IReturn def response_type() = T def get_type_name() = 'IReturn' end module IPut end class Todo include ServiceStack::DTO # @return [Integer] attr_accessor :id # @return [String] attr_accessor :text # @return [TrueClass] attr_accessor :is_finished def self.properties { id: { name: 'id' }, text: { name: 'text' }, is_finished: { name: 'isFinished' }, } end end # @Route("/todos/{Id}", "PUT") class UpdateTodo include ServiceStack::DTO # @return [Integer] attr_accessor :id # @Validate(Validator: "NotEmpty") # @return [String] attr_accessor :text # @return [TrueClass] attr_accessor :is_finished def self.properties { id: { name: 'id' }, text: { name: 'text' }, is_finished: { name: 'isFinished' }, } end def response_type() = Todo def get_type_name() = 'UpdateTodo' def get_method() = 'PUT' end