/* Options: Date: 2024-11-21 11:37:27 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: CreateUser.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/users", "POST") // @ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) public class CreateUser : IReturn, Codable { public typealias Return = CreateUserResponse // @ApiMember(IsRequired=true) public var firstname:String // @ApiMember(IsRequired=true) public var lastname:String // @ApiMember() public var phone:String // @ApiMember(IsRequired=true) public var email:String required public init(){} } public class CreateUserResponse : Codable { //responseStatus:Object ignored. Type could not be extended in Swift public var id:String? public var userId:String? public var email:String public var firstname:String public var lastname:String public var phone:String public var createdDate:Date? required public init(){} }