Portal

<back to all web services

BrowsePortalEventQueue

Requires Authentication
Requires any of the roles:VeoliaAdmin, SysAdmin
The following routes are available for this service:
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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"PortalEventQueue":{"Id":0,"EventType":0,"DataId":0,"CreatedDateTime":"0001-01-01T00:00:00.0000000"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}