GET | /freelicense/{Ref} | ||
---|---|---|---|
GET | /GetFreeLicense |
export enum LicenseType
{
Free = 'Free',
FreeIndividual = 'FreeIndividual',
FreeOpenSource = 'FreeOpenSource',
Indie = 'Indie',
Business = 'Business',
Enterprise = 'Enterprise',
TextIndie = 'TextIndie',
TextBusiness = 'TextBusiness',
OrmLiteIndie = 'OrmLiteIndie',
OrmLiteBusiness = 'OrmLiteBusiness',
RedisIndie = 'RedisIndie',
RedisBusiness = 'RedisBusiness',
AwsIndie = 'AwsIndie',
AwsBusiness = 'AwsBusiness',
Trial = 'Trial',
Site = 'Site',
TextSite = 'TextSite',
RedisSite = 'RedisSite',
OrmLiteSite = 'OrmLiteSite',
}
export class FreeLicenseResponse
{
public licenseName: string;
public licenseRef: string;
public licenseKey: string;
public licenseType?: LicenseType;
public createdDate?: string;
public expiryDate?: string;
public externalRef: string;
public responseStatus: ResponseStatus;
public constructor(init?: Partial<FreeLicenseResponse>) { (Object as any).assign(this, init); }
}
export class GetFreeLicense implements IGet
{
public ref: string;
public constructor(init?: Partial<GetFreeLicense>) { (Object as any).assign(this, init); }
}
TypeScript GetFreeLicense DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /freelicense/{Ref} HTTP/1.1 Host: account.servicestack.net Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { licenseName: String, licenseRef: String, licenseKey: String, licenseType: Free, createdDate: 0001-01-01, expiryDate: 0001-01-01, externalRef: String, responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } } }