Blazor Diffusion

<back to all web services

GetAlbumResults

Albums

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 GetAlbumResultsResponse
{
    public results: AlbumResult[] = [];

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

export class GetAlbumResults
{
    public ids?: number[];
    public refIds?: string[];

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

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

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

{"ids":[0],"refIds":["String"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"results":[{"id":0,"name":"String","slug":"String","albumRef":"String","ownerRef":"String","primaryArtifactId":0,"score":0,"artifactIds":[0]}]}