# 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: QueryChinookEmployees.* #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 IGet end class Employees include ServiceStack::DTO # @return [Integer] attr_accessor :employee_id # @Required # @return [String] attr_accessor :last_name # @Required # @return [String] attr_accessor :first_name # @return [String] attr_accessor :title # @return [Integer] attr_accessor :reports_to # @return [DateTime] attr_accessor :birth_date # @return [DateTime] attr_accessor :hire_date # @return [String] attr_accessor :address # @return [String] attr_accessor :city # @return [String] attr_accessor :state # @return [String] attr_accessor :country # @return [String] attr_accessor :postal_code # @return [String] attr_accessor :phone # @return [String] attr_accessor :fax # @return [String] attr_accessor :email def self.properties { employee_id: { name: 'employeeId' }, last_name: { name: 'lastName' }, first_name: { name: 'firstName' }, title: { name: 'title' }, reports_to: { name: 'reportsTo' }, birth_date: { name: 'birthDate', type: DateTime }, hire_date: { name: 'hireDate', type: DateTime }, address: { name: 'address' }, city: { name: 'city' }, state: { name: 'state' }, country: { name: 'country' }, postal_code: { name: 'postalCode' }, phone: { name: 'phone' }, fax: { name: 'fax' }, email: { name: 'email' }, } end end # @Route("/employees", "GET") class QueryChinookEmployees < ServiceStack::QueryDb # @return [Integer] attr_accessor :employee_id def self.properties { employee_id: { name: 'employeeId' }, } end def response_type() = ServiceStack::QueryResponse.of(Employees) def get_type_name() = 'QueryChinookEmployees' def get_method() = 'GET' end