| POST,GET | /api/Security/GetUserByBranchForApp |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
# @Flags()
class TrainingCourse(IntEnum):
ADD_MEMBER = 1
EDIT_MEMBER = 2
ADD_MEMBERSHIP = 4
JOURNAL = 8
HOME = 16
TILL = 32
ACCOUNTING = 64
UNEXPLAINED_PAYMENTS = 128
BOOKINGS = 256
USERS = 512
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class User:
user_id: Optional[int] = None
user_name: Optional[str] = None
name: Optional[str] = None
email: Optional[str] = None
email_confirmed: Optional[bool] = None
mobile_phone: Optional[str] = None
mobile_phone_confirmed: Optional[bool] = None
confirm_password: Optional[str] = None
password: Optional[str] = None
password_salt: Optional[str] = None
enabled: Optional[bool] = None
training: Optional[bool] = None
last_login: Optional[datetime.datetime] = None
created: Optional[datetime.datetime] = None
branch_id: Optional[int] = None
parent_branch_id: Optional[int] = None
member_id: Optional[int] = None
roles: Optional[List[str]] = None
courses_completed: Optional[TrainingCourse] = None
display_home_notification: Optional[bool] = None
two_factor_enabled: Optional[bool] = None
branch_name: Optional[str] = None
branch_key: Optional[str] = None
notifications: Optional[bool] = None
publishable_key: Optional[str] = None
secret_key: Optional[str] = None
app_registration_id: Optional[str] = None
app_registration_link: Optional[str] = None
app_qr_image_link: Optional[str] = None
change_password: Optional[datetime.datetime] = None
activated: Optional[datetime.datetime] = None
Python 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/hAg6nYMq8IkRVQLUGllSSechEKQsRmz7pI1HUrAmOQ5wYhjLJL8EPc=,
AppRegistrationLink: "https://secure.clubmanagercentral.com/Register?id=7TvtgFvdvABkciG+5MdrKWdOb3jcmCvVCNGhKIjNTe/cg3Cj1hiI/hAg6nYMq8IkRVQLUGllSSechEKQsRmz7pI1HUrAmOQ5wYhjLJL8EPc=",
AppQrImageLink: "https://secure.clubmanagercentral.com/User.mvc/GetQrByUserId?id=36xZln01EfE80ZF7GFWKkg==",
ChangePassword: 0001-01-01,
Activated: 0001-01-01
}