Blazor Diffusion

<back to all web services

AnonData

User

export class AlbumResult
{
    public id: number;
    public name: string;
    public slug: string;
    public albumRef: string;
    public ownerRef: string;
    public primaryArtifactId?: number;
    public score: number;
    public artifactIds: number[] = [];

    public constructor(init?: Partial<AlbumResult>) { (Object as any).assign(this, init); }
}

export class AnonDataResponse
{
    public topAlbums: AlbumResult[] = [];
    public responseStatus: ResponseStatus;

    public constructor(init?: Partial<AnonDataResponse>) { (Object as any).assign(this, init); }
}

export class AnonData
{

    public constructor(init?: Partial<AnonData>) { (Object as any).assign(this, init); }
}

TypeScript AnonData 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.

POST /jsonl/reply/AnonData HTTP/1.1 
Host: blazordiffusion.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"topAlbums":[{"id":0,"name":"String","slug":"String","albumRef":"String","ownerRef":"String","primaryArtifactId":0,"score":0,"artifactIds":[0]}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}