All Verbs | /technology/search |
---|
// @DataContract
export class QueryBase
{
// @DataMember(Order=1)
public skip?: number;
// @DataMember(Order=2)
public take?: number;
// @DataMember(Order=3)
public orderBy: string;
// @DataMember(Order=4)
public orderByDesc: string;
// @DataMember(Order=5)
public include: string;
// @DataMember(Order=6)
public fields: string;
// @DataMember(Order=7)
public meta: { [index:string]: string; };
public constructor(init?: Partial<QueryBase>) { (Object as any).assign(this, init); }
}
export class QueryDb<From, Into> extends QueryBase
{
public constructor(init?: Partial<QueryDb<From, Into>>) { 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 TechnologyView
{
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<TechnologyView>) { (Object as any).assign(this, init); }
}
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); }
}
// @AutoQueryViewer(DefaultSearchField="Tier", DefaultSearchText="Data", DefaultSearchType="=", Description="Explore different Technologies", IconUrl="octicon:database", Title="Find Technologies")
export class FindTechnologies extends QueryDb<Technology, TechnologyView>
{
public ids: number[];
public name: string;
public vendorName: string;
public nameContains: string;
public vendorNameContains: string;
public descriptionContains: string;
public constructor(init?: Partial<FindTechnologies>) { super(init); (Object as any).assign(this, init); }
}
export enum PostType
{
Announcement = 'Announcement',
Post = 'Post',
Showcase = 'Showcase',
Question = 'Question',
Request = 'Request',
}
export class Post
{
public id: number;
public organizationId: number;
public userId: number;
public type: PostType;
public categoryId: number;
public title: string;
public slug: string;
public url: string;
public imageUrl: string;
// @StringLength(2147483647)
public content: string;
// @StringLength(2147483647)
public contentHtml: string;
public pinCommentId?: number;
public technologyIds: number[];
public fromDate?: string;
public toDate?: string;
public location: string;
public metaType: string;
public meta: string;
public approved: boolean;
public upVotes: number;
public downVotes: number;
public points: number;
public views: number;
public favorites: number;
public subscribers: number;
public replyCount: number;
public commentsCount: number;
public wordCount: number;
public reportCount: number;
public linksCount: number;
public linkedToCount: number;
public score: number;
public rank: number;
public labels: string[];
public refUserIds: number[];
public refLinks: string[];
public muteUserIds: number[];
public lastCommentDate?: string;
public lastCommentId?: number;
public lastCommentUserId?: number;
public deleted?: string;
public deletedBy: string;
public locked?: string;
public lockedBy: string;
public hidden?: string;
public hiddenBy: string;
public status: string;
public statusDate?: string;
public statusBy: string;
public archived: boolean;
public bumped?: string;
public created: string;
public createdBy: string;
public modified: string;
public modifiedBy: string;
public refId?: number;
public refSource: string;
public refUrn: string;
public constructor(init?: Partial<Post>) { (Object as any).assign(this, init); }
}
// @DataContract
export class QueryResponse<T>
{
// @DataMember(Order=1)
public offset: number;
// @DataMember(Order=2)
public total: number;
// @DataMember(Order=3)
public results: Post[];
// @DataMember(Order=4)
public meta: { [index:string]: string; };
// @DataMember(Order=5)
public responseStatus: ResponseStatus;
public constructor(init?: Partial<QueryResponse<T>>) { (Object as any).assign(this, init); }
}
TypeScript FindTechnologies DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /technology/search HTTP/1.1
Host: techstacks.io
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<FindTechnologies xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel">
<Skip xmlns="http://schemas.servicestack.net/types">0</Skip>
<Take xmlns="http://schemas.servicestack.net/types">0</Take>
<OrderBy xmlns="http://schemas.servicestack.net/types">String</OrderBy>
<OrderByDesc xmlns="http://schemas.servicestack.net/types">String</OrderByDesc>
<Include xmlns="http://schemas.servicestack.net/types">String</Include>
<Fields xmlns="http://schemas.servicestack.net/types">String</Fields>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<DescriptionContains>String</DescriptionContains>
<Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>0</d2p1:long>
</Ids>
<Name>String</Name>
<NameContains>String</NameContains>
<VendorName>String</VendorName>
<VendorNameContains>String</VendorNameContains>
</FindTechnologies>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <QueryResponseOfTechnologyViewclPpLQp2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types"> <Offset>0</Offset> <Total>0</Total> <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types"> <d2p1:TechnologyView> <d2p1:CommentsPostId>0</d2p1:CommentsPostId> <d2p1:Created>0001-01-01T00:00:00</d2p1:Created> <d2p1:CreatedBy>String</d2p1:CreatedBy> <d2p1:Description>String</d2p1:Description> <d2p1:FavCount>0</d2p1:FavCount> <d2p1:Id>0</d2p1:Id> <d2p1:IsLocked>false</d2p1:IsLocked> <d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified> <d2p1:LastModifiedBy>String</d2p1:LastModifiedBy> <d2p1:LastStatusUpdate>0001-01-01T00:00:00</d2p1:LastStatusUpdate> <d2p1:LogoApproved>false</d2p1:LogoApproved> <d2p1:LogoUrl>String</d2p1:LogoUrl> <d2p1:Name>String</d2p1:Name> <d2p1:OrganizationId>0</d2p1:OrganizationId> <d2p1:OwnerId>String</d2p1:OwnerId> <d2p1:ProductUrl>String</d2p1:ProductUrl> <d2p1:Slug>String</d2p1:Slug> <d2p1:Tier>ProgrammingLanguage</d2p1:Tier> <d2p1:VendorName>String</d2p1:VendorName> <d2p1:VendorUrl>String</d2p1:VendorUrl> <d2p1:ViewCount>0</d2p1:ViewCount> </d2p1:TechnologyView> </Results> <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>String</d2p1:Key> <d2p1:Value>String</d2p1:Value> </d2p1:KeyValueOfstringstring> </Meta> <ResponseStatus> <ErrorCode>String</ErrorCode> <Message>String</Message> <StackTrace>String</StackTrace> <Errors> <ResponseError> <ErrorCode>String</ErrorCode> <FieldName>String</FieldName> <Message>String</Message> <Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </Meta> </ResponseError> </Errors> <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </Meta> </ResponseStatus> </QueryResponseOfTechnologyViewclPpLQp2>