AlbaApi

<back to all web services

DanishAdminProxyRequest

The following routes are available for this service:
GET/danishproxyaccess/get/cpr/{CprNumber}/wtwusername/{WtwUsername}
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


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class KappResponseStatus:
    status_code: Optional[str] = None
    status_message: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ProxyAccess:
    wtw_username: Optional[str] = None
    cpr: Optional[str] = None
    access_granted: Optional[bool] = None
    message: Optional[str] = None
    time_stamp: Optional[datetime.datetime] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DanishAdminProxyResponse:
    message: Optional[str] = None
    status_code: Optional[int] = None
    member_pid: Optional[str] = None
    member_employee_guid: Optional[str] = None
    kapp_response_status: Optional[KappResponseStatus] = None
    proxy_access: Optional[ProxyAccess] = None
    has_member_data: Optional[bool] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DanishAdminProxyRequest:
    cpr_number: Optional[str] = None
    wtw_username: Optional[str] = None

Python DanishAdminProxyRequest 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 /danishproxyaccess/get/cpr/{CprNumber}/wtwusername/{WtwUsername} HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	message: String,
	statusCode: 0,
	memberPid: String,
	memberEmployeeGuid: 00000000000000000000000000000000,
	kappResponseStatus: 
	{
		statusCode: String,
		statusMessage: String
	},
	proxyAccess: 
	{
		wtwUsername: String,
		cpr: String,
		accessGranted: False,
		message: String,
		timeStamp: 0001-01-01
	},
	hasMemberData: False
}