ClubManager.Api

<back to all web services

SecurityService.GetUserByBranchRequest

Requires Authentication
The following routes are available for this service:
POST,GET/api/Security/GetUserByBranch
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ClubManager.Interfaces.Models.Security;

namespace ClubManager.Interfaces.Models.Security
{
    [Flags]
    public enum TrainingCourse
    {
        AddMember = 1,
        EditMember = 2,
        AddMembership = 4,
        Journal = 8,
        Home = 16,
        Till = 32,
        Accounting = 64,
        UnexplainedPayments = 128,
        Bookings = 256,
        Users = 512,
    }

    public partial class User
    {
        public User()
        {
            Roles = new string[]{};
        }

        public virtual int UserId { get; set; }
        public virtual string UserName { get; set; }
        public virtual string Name { get; set; }
        public virtual string Email { get; set; }
        public virtual bool EmailConfirmed { get; set; }
        public virtual string MobilePhone { get; set; }
        public virtual bool MobilePhoneConfirmed { get; set; }
        public virtual string ConfirmPassword { get; set; }
        public virtual string Password { get; set; }
        public virtual string PasswordSalt { get; set; }
        public virtual bool Enabled { get; set; }
        public virtual bool Training { get; set; }
        public virtual DateTime? LastLogin { get; set; }
        public virtual DateTime Created { get; set; }
        public virtual int BranchId { get; set; }
        public virtual int ParentBranchId { get; set; }
        public virtual int? MemberId { get; set; }
        public virtual string[] Roles { get; set; }
        public virtual TrainingCourse CoursesCompleted { get; set; }
        public virtual bool DisplayHomeNotification { get; set; }
        public virtual bool TwoFactorEnabled { get; set; }
        public virtual string BranchName { get; set; }
        public virtual Guid BranchKey { get; set; }
        public virtual bool Notifications { get; set; }
        public virtual string PublishableKey { get; set; }
        public virtual string SecretKey { get; set; }
        public virtual string AppRegistrationId { get; set; }
        public virtual string AppRegistrationLink { get; set; }
        public virtual string AppQrImageLink { get; set; }
        public virtual DateTime? ChangePassword { get; set; }
        public virtual DateTime? Activated { get; set; }
    }

}

C# SecurityService.GetUserByBranchRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/Security/GetUserByBranch HTTP/1.1 
Host: api.clubmanagercentral.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
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+5MdrKWdOb3jcmCvVCNGhKIjNTe8DO9SIT6XiKiD7kcMEPEWorbxzayu/wxDD52uzIk5EmdEO4IO9pDinZnQXBqutkog=,
	AppRegistrationLink: "https://secure.clubmanagercentral.com/Register?id=7TvtgFvdvABkciG+5MdrKWdOb3jcmCvVCNGhKIjNTe8DO9SIT6XiKiD7kcMEPEWorbxzayu/wxDD52uzIk5EmdEO4IO9pDinZnQXBqutkog=",
	AppQrImageLink: "https://secure.clubmanagercentral.com/User.mvc/GetQrByUserId?id=36xZln01EfE80ZF7GFWKkg==",
	ChangePassword: 0001-01-01,
	Activated: 0001-01-01
}