DigiOffice Gateway Web Services

<back to all web services

GetRegistrationprofile

Requires Authentication
The following routes are available for this service:
GET/api/registrationprofiles/{ID}
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class Registrationprofile implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $ID='',
        /** @var string|null */
        public ?string $Name=null,
        /** @var string|null */
        public ?string $Hint=null,
        /** @var int */
        public int $Order=0,
        /** @var bool|null */
        public ?bool $RegisterAutomatically=null,
        /** @var bool|null */
        public ?bool $RegisterInBackground=null,
        /** @var string|null */
        public ?string $ThumbnailUrl=null,
        /** @var string|null */
        public ?string $ProgCode=null,
        /** @var int */
        public int $VersionControlType=0,
        /** @var int */
        public int $WOPlaceLogo=0,
        /** @var string|null */
        public ?string $WOPrinterBins=null,
        /** @var bool|null */
        public ?bool $SelectAllFiles=null,
        /** @var bool|null */
        public ?bool $ShowSaveDialog=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['ID'])) $this->ID = $o['ID'];
        if (isset($o['Name'])) $this->Name = $o['Name'];
        if (isset($o['Hint'])) $this->Hint = $o['Hint'];
        if (isset($o['Order'])) $this->Order = $o['Order'];
        if (isset($o['RegisterAutomatically'])) $this->RegisterAutomatically = $o['RegisterAutomatically'];
        if (isset($o['RegisterInBackground'])) $this->RegisterInBackground = $o['RegisterInBackground'];
        if (isset($o['ThumbnailUrl'])) $this->ThumbnailUrl = $o['ThumbnailUrl'];
        if (isset($o['ProgCode'])) $this->ProgCode = $o['ProgCode'];
        if (isset($o['VersionControlType'])) $this->VersionControlType = $o['VersionControlType'];
        if (isset($o['WOPlaceLogo'])) $this->WOPlaceLogo = $o['WOPlaceLogo'];
        if (isset($o['WOPrinterBins'])) $this->WOPrinterBins = $o['WOPrinterBins'];
        if (isset($o['SelectAllFiles'])) $this->SelectAllFiles = $o['SelectAllFiles'];
        if (isset($o['ShowSaveDialog'])) $this->ShowSaveDialog = $o['ShowSaveDialog'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->ID)) $o['ID'] = $this->ID;
        if (isset($this->Name)) $o['Name'] = $this->Name;
        if (isset($this->Hint)) $o['Hint'] = $this->Hint;
        if (isset($this->Order)) $o['Order'] = $this->Order;
        if (isset($this->RegisterAutomatically)) $o['RegisterAutomatically'] = $this->RegisterAutomatically;
        if (isset($this->RegisterInBackground)) $o['RegisterInBackground'] = $this->RegisterInBackground;
        if (isset($this->ThumbnailUrl)) $o['ThumbnailUrl'] = $this->ThumbnailUrl;
        if (isset($this->ProgCode)) $o['ProgCode'] = $this->ProgCode;
        if (isset($this->VersionControlType)) $o['VersionControlType'] = $this->VersionControlType;
        if (isset($this->WOPlaceLogo)) $o['WOPlaceLogo'] = $this->WOPlaceLogo;
        if (isset($this->WOPrinterBins)) $o['WOPrinterBins'] = $this->WOPrinterBins;
        if (isset($this->SelectAllFiles)) $o['SelectAllFiles'] = $this->SelectAllFiles;
        if (isset($this->ShowSaveDialog)) $o['ShowSaveDialog'] = $this->ShowSaveDialog;
        return empty($o) ? new class(){} : $o;
    }
}

class GetRegistrationprofile implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $ID=''
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['ID'])) $this->ID = $o['ID'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->ID)) $o['ID'] = $this->ID;
        return empty($o) ? new class(){} : $o;
    }
}

PHP GetRegistrationprofile 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 /api/registrationprofiles/{ID} HTTP/1.1 
Host: dogw.klokgroep.nl 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ID":"00000000-0000-0000-0000-000000000000","Name":"String","Hint":"String","Order":0,"RegisterAutomatically":false,"RegisterInBackground":false,"ThumbnailUrl":"String","ProgCode":"String","VersionControlType":0,"WOPlaceLogo":0,"WOPrinterBins":"String","SelectAllFiles":false,"ShowSaveDialog":false}