| POST,GET | /api/Security/GetUserByBranchForApp |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class User
{
var UserId:Int? = null
var UserName:String? = null
var Name:String? = null
var Email:String? = null
var EmailConfirmed:Boolean? = null
var MobilePhone:String? = null
var MobilePhoneConfirmed:Boolean? = null
var ConfirmPassword:String? = null
var Password:String? = null
var PasswordSalt:String? = null
var Enabled:Boolean? = null
var Training:Boolean? = null
var LastLogin:Date? = null
var Created:Date? = null
var BranchId:Int? = null
var ParentBranchId:Int? = null
var MemberId:Int? = null
var Roles:ArrayList<String>? = null
var CoursesCompleted:TrainingCourse? = null
var DisplayHomeNotification:Boolean? = null
var TwoFactorEnabled:Boolean? = null
var BranchName:String? = null
var BranchKey:UUID? = null
var Notifications:Boolean? = null
var PublishableKey:String? = null
var SecretKey:String? = null
var AppRegistrationId:String? = null
var AppRegistrationLink:String? = null
var AppQrImageLink:String? = null
var ChangePassword:Date? = null
var Activated:Date? = null
}
@Flags()
enum class TrainingCourse(val value:Int)
{
@SerializedName("1") AddMember(1),
@SerializedName("2") EditMember(2),
@SerializedName("4") AddMembership(4),
@SerializedName("8") Journal(8),
@SerializedName("16") Home(16),
@SerializedName("32") Till(32),
@SerializedName("64") Accounting(64),
@SerializedName("128") UnexplainedPayments(128),
@SerializedName("256") Bookings(256),
@SerializedName("512") Users(512),
}
Kotlin SecurityService.GetUserByBranchForAppRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Security/GetUserByBranchForApp HTTP/1.1
Host: api.clubmanagercentral.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
AppUserId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
UserId: 0,
UserName: String,
Name: String,
Email: String,
EmailConfirmed: False,
MobilePhone: String,
MobilePhoneConfirmed: False,
ConfirmPassword: String,
Password: String,
PasswordSalt: String,
Enabled: False,
Training: False,
LastLogin: 0001-01-01,
Created: 0001-01-01,
BranchId: 0,
ParentBranchId: 0,
MemberId: 0,
Roles:
[
String
],
CoursesCompleted: 1,
DisplayHomeNotification: False,
TwoFactorEnabled: False,
BranchName: String,
BranchKey: 00000000000000000000000000000000,
Notifications: False,
PublishableKey: String,
SecretKey: String,
AppRegistrationId: 7TvtgFvdvABkciG+5MdrKWdOb3jcmCvVCNGhKIjNTe/cg3Cj1hiI/hAg6nYMq8IkGk5j+2/2Dpmmfn1LRLZ4jwcJqsYvkPJ1VnNk3JbEWQ4=,
AppRegistrationLink: "https://secure.clubmanagercentral.com/Register?id=7TvtgFvdvABkciG+5MdrKWdOb3jcmCvVCNGhKIjNTe/cg3Cj1hiI/hAg6nYMq8IkGk5j+2/2Dpmmfn1LRLZ4jwcJqsYvkPJ1VnNk3JbEWQ4=",
AppQrImageLink: "https://secure.clubmanagercentral.com/User.mvc/GetQrByUserId?id=36xZln01EfE80ZF7GFWKkg==",
ChangePassword: 0001-01-01,
Activated: 0001-01-01
}