Blazor Diffusion

<back to all web services

CheckQuota

User
Requires Authentication

export class CheckQuotaResponse
{
    public timeRemaining: string;
    public creditsUsed: number;
    public creditsRequested: number;
    public creditsRemaining: number;
    public dailyQuota: number;
    public requestedDetails: string;

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

// @ValidateRequest(Validator="IsAuthenticated")
export class CheckQuota
{
    public images: number;
    public width: number;
    public height: number;

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

TypeScript CheckQuota DTOs

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

HTTP + JSV

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

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

{
	images: 0,
	width: 0,
	height: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	timeRemaining: PT0S,
	creditsUsed: 0,
	creditsRequested: 0,
	creditsRemaining: 0,
	dailyQuota: 0,
	requestedDetails: String
}