Trendsic Platform Service

<back to all web services

GetMyTerminologyRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/me/terminology
<?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 GetMyTerminologyRequest implements IGet, JsonSerializable
{
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        return empty($o) ? new class(){} : $o;
    }
}

class GetMyTerminologyResponse implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $PackCode=null,
        /** @var array<string,string>|null */
        public ?array $Terms=null,
        /** @var array<string,bool>|null */
        public ?array $Features=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['PackCode'])) $this->PackCode = $o['PackCode'];
        if (isset($o['Terms'])) $this->Terms = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','string']), $o['Terms']);
        if (isset($o['Features'])) $this->Features = JsonConverters::from(JsonConverters::context('Dictionary',genericArgs:['string','bool']), $o['Features']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->PackCode)) $o['PackCode'] = $this->PackCode;
        if (isset($this->Terms)) $o['Terms'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','string']), $this->Terms);
        if (isset($this->Features)) $o['Features'] = JsonConverters::to(JsonConverters::context('Dictionary',genericArgs:['string','bool']), $this->Features);
        return empty($o) ? new class(){} : $o;
    }
}

PHP GetMyTerminologyRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/me/terminology HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"PackCode":"String","Terms":{"String":"String"},"Features":{"String":false}}