Requires any of the roles: | VeoliaAdmin, SysAdmin |
GET | /portaleventqueue/{portaleventqueueid} |
---|
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 ResponseBase:
response_status: Optional[ResponseStatus] = None
class PortalEventQueueType(IntEnum):
CREATE_USER = 0
VIEW_TENDER_USER_INVITE = 1
CREATE_TENDER_USER = 2
CREATE_QUESTION = 3
VIEW_SUPPLEMENTARY_REQUEST = 4
CREATE_SUPPLEMENTARY_RESPONSE = 5
VIEW_CONTRACT_VERSION = 6
ACCEPT_CONTRACT_VERSION = 7
CREATE_CONTRACT_VERSION_COMMENT = 8
VIEW_PURCHASE_ORDER_VERSION = 9
ACCEPT_PURCHASE_ORDER_VERSION = 10
CREATE_PURCHASE_ORDER_VERSION_COMMENT = 11
EDIT_USER = 12
SUBMIT_TENDER_USER_TENDER_ROUND = 13
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PortalEventQueueSimple:
id: int = 0
event_type: Optional[PortalEventQueueType] = None
data_id: int = 0
created_date_time: datetime.datetime = datetime.datetime(1, 1, 1)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class BrowsePortalEventQueueResponse(ResponseBase):
portal_event_queue: Optional[PortalEventQueueSimple] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class BrowsePortalEventQueue(IGet):
portal_event_queue_id: int = 0
Python BrowsePortalEventQueue DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /portaleventqueue/{portaleventqueueid} HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BrowsePortalEventQueueResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.ServiceDto"> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> <PortalEventQueue> <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime> <DataId>0</DataId> <EventType>CreateUser</EventType> <Id>0</Id> </PortalEventQueue> </BrowsePortalEventQueueResponse>