Richemont.Booster2.PublicApi

<back to all web services

GetUser

Requires Authentication
The following routes are available for this service:
GET/users/{userId}Get user if exists and is not disabled
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.Security.ServiceModel;

namespace Richemont.Booster2.PublicApi.Security.ServiceModel
{
    public partial class GetUser
    {
        ///<summary>
        ///User's UserID
        ///</summary>
        [ApiMember(Description="User's UserID", IsRequired=true)]
        public virtual string userId { get; set; }
    }

    public partial class GetUserResponse
    {
        ///<summary>
        ///Unique Identifier of a User
        ///</summary>
        [ApiMember(Description="Unique Identifier of a User", IsRequired=true)]
        public virtual Guid userId { get; set; }

        ///<summary>
        ///User's Email address
        ///</summary>
        [ApiMember(Description="User's Email address", IsRequired=true)]
        public virtual string emailAddress { get; set; }

        ///<summary>
        ///First Name
        ///</summary>
        [ApiMember(Description="First Name", IsRequired=true)]
        public virtual string firstName { get; set; }

        ///<summary>
        ///Last Name
        ///</summary>
        [ApiMember(Description="Last Name", IsRequired=true)]
        public virtual string lastName { get; set; }

        ///<summary>
        ///User's Password Expiration Date
        ///</summary>
        [ApiMember(Description="User's Password Expiration Date")]
        public virtual string passwordExpirationDate { get; set; }

        ///<summary>
        ///If the User must change the password
        ///</summary>
        [ApiMember(Description="If the User must change the password", IsRequired=true)]
        public virtual bool passwordMustBeChanged { get; set; }

        ///<summary>
        ///User Type of the User
        ///</summary>
        [ApiMember(Description="User Type of the User", IsRequired=true)]
        public virtual string userType { get; set; }

        ///<summary>
        ///Culture ID of the User
        ///</summary>
        [ApiMember(Description="Culture ID of the User", IsRequired=true)]
        public virtual string culture { get; set; }

        ///<summary>
        ///If the User account is locked
        ///</summary>
        [ApiMember(Description="If the User account is locked", IsRequired=true)]
        public virtual bool accountLocked { get; set; }
    }

}

C# GetUser DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /users/{userId} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"userId":"00000000000000000000000000000000","emailAddress":"String","firstName":"String","lastName":"String","passwordExpirationDate":"String","passwordMustBeChanged":false,"userType":"String","culture":"String","accountLocked":false}