# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-09-01 19:35:23 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: QueryTodos.* #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 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", "GET") class QueryTodos < ServiceStack::QueryData # @return [Integer] attr_accessor :id # @return [List] attr_accessor :ids # @return [String] attr_accessor :text_contains def self.properties { id: { name: 'id' }, ids: { name: 'ids' }, text_contains: { name: 'textContains' }, } end def response_type() = ServiceStack::QueryResponse.of(Todo) def get_type_name() = 'QueryTodos' def get_method() = 'GET' end