PUT | /favorites/techtacks/{TechnologyStackId} |
---|
export class TechnologyStackBase
{
public id: number;
public name: string;
public vendorName: string;
public description: string;
public appUrl: string;
public screenshotUrl: string;
public created: string;
public createdBy: string;
public lastModified: string;
public lastModifiedBy: string;
public isLocked: boolean;
public ownerId: string;
public slug: string;
// @StringLength(2147483647)
public details: string;
// @StringLength(2147483647)
public detailsHtml: string;
public lastStatusUpdate?: string;
public organizationId?: number;
public commentsPostId?: number;
public viewCount: number;
public favCount: number;
public constructor(init?: Partial<TechnologyStackBase>) { (Object as any).assign(this, init); }
}
export class TechnologyStack extends TechnologyStackBase
{
public constructor(init?: Partial<TechnologyStack>) { super(init); (Object as any).assign(this, init); }
}
export class FavoriteTechStackResponse
{
public result: TechnologyStack;
public constructor(init?: Partial<FavoriteTechStackResponse>) { (Object as any).assign(this, init); }
}
export class AddFavoriteTechStack implements IPut
{
public technologyStackId: number;
public constructor(init?: Partial<AddFavoriteTechStack>) { (Object as any).assign(this, init); }
}
TypeScript AddFavoriteTechStack 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.
PUT /favorites/techtacks/{TechnologyStackId} HTTP/1.1
Host: techstacks.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
technologyStackId: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { result: { id: 0, name: String, vendorName: String, description: String, appUrl: String, screenshotUrl: String, created: 0001-01-01, createdBy: String, lastModified: 0001-01-01, lastModifiedBy: String, isLocked: False, ownerId: String, slug: String, details: String, detailsHtml: String, lastStatusUpdate: 0001-01-01, organizationId: 0, commentsPostId: 0, viewCount: 0, favCount: 0 } }