All Verbs | /my-session |
---|
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 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 Technology extends TechnologyBase
{
public constructor(init?: Partial<Technology>) { super(init); (Object as any).assign(this, init); }
}
export class UserActivity
{
public id: number;
public userName: string;
public karma: number;
public technologyCount: number;
public techStacksCount: number;
public postsCount: number;
public postUpVotes: number;
public postDownVotes: number;
public commentUpVotes: number;
public commentDownVotes: number;
public postCommentsCount: number;
public pinnedCommentCount: number;
public postReportCount: number;
public postCommentReportCount: number;
public created: string;
public modified: string;
public constructor(init?: Partial<UserActivity>) { (Object as any).assign(this, init); }
}
export class OrganizationMember
{
public id: number;
public organizationId: number;
public userId: number;
public userName: string;
public isOwner: boolean;
public isModerator: boolean;
public denyAll: boolean;
public denyPosts: boolean;
public denyComments: boolean;
public notes: string;
public constructor(init?: Partial<OrganizationMember>) { (Object as any).assign(this, init); }
}
export class OrganizationMemberInvite
{
public id: number;
public organizationId: number;
public userId: number;
public userName: string;
public dismissed?: string;
public constructor(init?: Partial<OrganizationMemberInvite>) { (Object as any).assign(this, init); }
}
export class OrganizationSubscription
{
public id: number;
public organizationId: number;
public userId: number;
public userName: string;
public postTypes: string[];
public frequencyDays?: number;
public lastSyncedId?: number;
public lastSynced?: string;
public created: string;
public constructor(init?: Partial<OrganizationSubscription>) { (Object as any).assign(this, init); }
}
export class SessionInfoResponse
{
public created: string;
public id: string;
public referrerUrl: string;
public userAuthId: string;
public userAuthName: string;
public userName: string;
public displayName: string;
public firstName: string;
public lastName: string;
public email: string;
public createdAt: string;
public lastModified: string;
public roles: string[];
public permissions: string[];
public isAuthenticated: boolean;
public authProvider: string;
public profileUrl: string;
public githubProfileUrl: string;
public twitterProfileUrl: string;
public accessToken: string;
public avatarUrl: string;
public techStacks: TechnologyStack[];
public favoriteTechStacks: TechnologyStack[];
public favoriteTechnologies: Technology[];
public userActivity: UserActivity;
public members: OrganizationMember[];
public memberInvites: OrganizationMemberInvite[];
public subscriptions: OrganizationSubscription[];
public responseStatus: ResponseStatus;
public constructor(init?: Partial<SessionInfoResponse>) { (Object as any).assign(this, init); }
}
// @ValidateRequest(Validator="IsAuthenticated")
export class SessionInfo implements IGet
{
public constructor(init?: Partial<SessionInfo>) { (Object as any).assign(this, init); }
}
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.
POST /my-session HTTP/1.1
Host: techstacks.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { created: 0001-01-01, id: String, referrerUrl: String, userAuthId: String, userAuthName: String, userName: String, displayName: String, firstName: String, lastName: String, email: String, createdAt: 0001-01-01, lastModified: 0001-01-01, roles: [ String ], permissions: [ String ], isAuthenticated: False, authProvider: String, profileUrl: String, githubProfileUrl: String, twitterProfileUrl: String, accessToken: String, avatarUrl: String, techStacks: [ { 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 } ], favoriteTechStacks: [ { 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 } ], favoriteTechnologies: [ { id: 0, name: String, vendorName: String, vendorUrl: String, productUrl: String, logoUrl: String, description: String, created: 0001-01-01, createdBy: String, lastModified: 0001-01-01, lastModifiedBy: String, ownerId: String, slug: String, logoApproved: False, isLocked: False, tier: ProgrammingLanguage, lastStatusUpdate: 0001-01-01, organizationId: 0, commentsPostId: 0, viewCount: 0, favCount: 0 } ], userActivity: { id: 0, userName: String, karma: 0, technologyCount: 0, techStacksCount: 0, postsCount: 0, postUpVotes: 0, postDownVotes: 0, commentUpVotes: 0, commentDownVotes: 0, postCommentsCount: 0, pinnedCommentCount: 0, postReportCount: 0, postCommentReportCount: 0, created: 0001-01-01, modified: 0001-01-01 }, members: [ { id: 0, organizationId: 0, userId: 0, userName: String, isOwner: False, isModerator: False, denyAll: False, denyPosts: False, denyComments: False, notes: String } ], memberInvites: [ { id: 0, organizationId: 0, userId: 0, userName: String, dismissed: 0001-01-01 } ], subscriptions: [ { id: 0, organizationId: 0, userId: 0, userName: String, postTypes: [ String ], frequencyDays: 0, lastSyncedId: 0, lastSynced: 0001-01-01, created: 0001-01-01 } ], responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } } }