All Verbs | /user/organizations |
---|
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 GetUserOrganizationsResponse
{
public members: OrganizationMember[];
public memberInvites: OrganizationMemberInvite[];
public subscriptions: OrganizationSubscription[];
public constructor(init?: Partial<GetUserOrganizationsResponse>) { (Object as any).assign(this, init); }
}
export class GetUserOrganizations implements IGet
{
public constructor(init?: Partial<GetUserOrganizations>) { (Object as any).assign(this, init); }
}
TypeScript GetUserOrganizations 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.
POST /user/organizations 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 { 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 } ] }