PUT | /techstacks/{Id} |
---|
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 enum TechnologyTier
{
ProgrammingLanguage = 'ProgrammingLanguage',
Client = 'Client',
Http = 'Http',
Server = 'Server',
Data = 'Data',
SoftwareInfrastructure = 'SoftwareInfrastructure',
OperatingSystem = 'OperatingSystem',
HardwareInfrastructure = 'HardwareInfrastructure',
ThirdPartyServices = 'ThirdPartyServices',
}
export class TechnologyBase
{
public id: number;
public name: string;
public vendorName: string;
public vendorUrl: string;
public productUrl: string;
public logoUrl: string;
public description: string;
public created: string;
public createdBy: string;
public lastModified: string;
public lastModifiedBy: string;
public ownerId: string;
public slug: string;
public logoApproved: boolean;
public isLocked: boolean;
public tier: TechnologyTier;
public lastStatusUpdate?: string;
public organizationId?: number;
public commentsPostId?: number;
public viewCount: number;
public favCount: number;
public constructor(init?: Partial<TechnologyBase>) { (Object as any).assign(this, init); }
}
export class TechnologyInStack extends TechnologyBase
{
public technologyId: number;
public technologyStackId: number;
public justification: string;
public constructor(init?: Partial<TechnologyInStack>) { super(init); (Object as any).assign(this, init); }
}
export class TechStackDetails extends TechnologyStackBase
{
public technologyChoices: TechnologyInStack[];
public constructor(init?: Partial<TechStackDetails>) { super(init); (Object as any).assign(this, init); }
}
export class UpdateTechnologyStackResponse
{
public result: TechStackDetails;
public responseStatus: ResponseStatus;
public constructor(init?: Partial<UpdateTechnologyStackResponse>) { (Object as any).assign(this, init); }
}
export class UpdateTechnologyStack implements IPut
{
public id: number;
public name: string;
public vendorName: string;
public appUrl: string;
public screenshotUrl: string;
public description: string;
public details: string;
public isLocked: boolean;
public technologyIds: number[];
public constructor(init?: Partial<UpdateTechnologyStack>) { (Object as any).assign(this, init); }
}
TypeScript UpdateTechnologyStack DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /techstacks/{Id} HTTP/1.1
Host: techstacks.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"id":0,"name":"String","vendorName":"String","appUrl":"String","screenshotUrl":"String","description":"String","details":"String","isLocked":false,"technologyIds":[0]}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"result":{"technologyChoices":[{"technologyId":0,"technologyStackId":0,"justification":"String","id":0,"name":"String","vendorName":"String","vendorUrl":"String","productUrl":"String","logoUrl":"String","description":"String","created":"0001-01-01T00:00:00.0000000","createdBy":"String","lastModified":"0001-01-01T00:00:00.0000000","lastModifiedBy":"String","ownerId":"String","slug":"String","logoApproved":false,"isLocked":false,"tier":"ProgrammingLanguage","lastStatusUpdate":"0001-01-01T00:00:00.0000000","organizationId":0,"commentsPostId":0,"viewCount":0,"favCount":0}],"id":0,"name":"String","vendorName":"String","description":"String","appUrl":"String","screenshotUrl":"String","created":"0001-01-01T00:00:00.0000000","createdBy":"String","lastModified":"0001-01-01T00:00:00.0000000","lastModifiedBy":"String","isLocked":false,"ownerId":"String","slug":"String","details":"String","detailsHtml":"String","lastStatusUpdate":"0001-01-01T00:00:00.0000000","organizationId":0,"commentsPostId":0,"viewCount":0,"favCount":0},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}