Portal

<back to all web services

BrowseUser

Requires Authentication
Requires any of the roles:VeoliaAdmin, SupplierAdmin, UserRegistration, User
The following routes are available for this service:
GET/user/{userid}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class BrowseUser : IGet
{
    var UserId:Int? = null
}

open class BrowseUserResponse : ResponseBase()
{
    var User:UserDetails? = null
}

open class ResponseBase
{
    var ResponseStatus:ResponseStatus? = null
}

open class UserDetails : ModifyRequestBase()
{
    var Id:Int? = null
    var Email:String? = null
    var UserName:String? = null
    var PhoneNumber:String? = null
    var DisplayName:String? = null
    var PhoneNumberExtension:String? = null
    var PhoneNumberCountryCodeId:Int? = null
    var PhoneNumberCountryCode:String? = null
    var MobilePhoneNumber:String? = null
    var MobilePhoneNumberCountryCodeId:Int? = null
    var MobilePhoneNumberCountryCode:String? = null
    var OrganizationUnit:String? = null
    var Position:String? = null
    var Status:ApplicationUserStatus? = null
    var SupplierId:Int? = null
    var SupplierOwnerId:Int? = null
    var Meta:HashMap<String,String> = HashMap<String,String>()
    var Roles:ArrayList<String> = ArrayList<String>()
    var IsSupplierAdmin:Boolean? = null
}

open class ModifyRequestBase : IConcurrencyStamp
{
    var ConcurrencyStamp:String? = null
}

enum class ApplicationUserStatus(val value:Int)
{
    @SerializedName("0") Registered(0),
    @SerializedName("1") ConfirmedByUser(1),
    @SerializedName("2") SupplierUserRegistered(2),
    @SerializedName("3") AwaitingSupplierConfirmation(3),
    @SerializedName("4") AwaitingVeoliaConfirmation(4),
    @SerializedName("5") Active(5),
    @SerializedName("6") Rejected(6),
    @SerializedName("7") Deleted(7),
}

Kotlin BrowseUser 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.

GET /user/{userid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	"User": 
	{
		"Id": 0,
		"Email": "String",
		"UserName": "String",
		"PhoneNumber": "String",
		"DisplayName": "String",
		"PhoneNumberExtension": "String",
		"PhoneNumberCountryCodeId": 0,
		"PhoneNumberCountryCode": "String",
		"MobilePhoneNumber": "String",
		"MobilePhoneNumberCountryCodeId": 0,
		"MobilePhoneNumberCountryCode": "String",
		"OrganizationUnit": "String",
		"Position": "String",
		"Status": 0,
		"SupplierId": 0,
		"SupplierOwnerId": 0,
		"Meta": 
		{
			"String": "String"
		},
		"Roles": 
		[
			"String"
		],
		"IsSupplierAdmin": true,
		"ConcurrencyStamp": "String"
	},
	"ResponseStatus": 
	{
		"ErrorCode": "String",
		"Message": "String",
		"StackTrace": "String",
		"Errors": 
		[
			{
				"ErrorCode": "String",
				"FieldName": "String",
				"Message": "String",
				"Meta": 
				{
					"String": "String"
				}
			}
		],
		"Meta": 
		{
			"String": "String"
		}
	}
}