All Verbs | /techstacks/query |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class QueryTechStacks extends QueryDb<TechnologyStack, TechnologyStackView>
{
public ArrayList<Long> ids = null;
public String name = null;
public String vendorName = null;
public String nameContains = null;
public String vendorNameContains = null;
public String descriptionContains = null;
public ArrayList<Long> getIds() { return ids; }
public QueryTechStacks setIds(ArrayList<Long> value) { this.ids = value; return this; }
public String getName() { return name; }
public QueryTechStacks setName(String value) { this.name = value; return this; }
public String getVendorName() { return vendorName; }
public QueryTechStacks setVendorName(String value) { this.vendorName = value; return this; }
public String getNameContains() { return nameContains; }
public QueryTechStacks setNameContains(String value) { this.nameContains = value; return this; }
public String getVendorNameContains() { return vendorNameContains; }
public QueryTechStacks setVendorNameContains(String value) { this.vendorNameContains = value; return this; }
public String getDescriptionContains() { return descriptionContains; }
public QueryTechStacks setDescriptionContains(String value) { this.descriptionContains = value; return this; }
}
public static class QueryDb<From, Into> extends QueryBase
{
}
@DataContract
public static class QueryBase
{
@DataMember(Order=1)
public Integer skip = null;
@DataMember(Order=2)
public Integer take = null;
@DataMember(Order=3)
public String orderBy = null;
@DataMember(Order=4)
public String orderByDesc = null;
@DataMember(Order=5)
public String include = null;
@DataMember(Order=6)
public String fields = null;
@DataMember(Order=7)
public HashMap<String,String> meta = null;
public Integer getSkip() { return skip; }
public QueryBase setSkip(Integer value) { this.skip = value; return this; }
public Integer getTake() { return take; }
public QueryBase setTake(Integer value) { this.take = value; return this; }
public String getOrderBy() { return orderBy; }
public QueryBase setOrderBy(String value) { this.orderBy = value; return this; }
public String getOrderByDesc() { return orderByDesc; }
public QueryBase setOrderByDesc(String value) { this.orderByDesc = value; return this; }
public String getInclude() { return include; }
public QueryBase setInclude(String value) { this.include = value; return this; }
public String getFields() { return fields; }
public QueryBase setFields(String value) { this.fields = value; return this; }
public HashMap<String,String> getMeta() { return meta; }
public QueryBase setMeta(HashMap<String,String> value) { this.meta = value; return this; }
}
public static class TechnologyStack extends TechnologyStackBase
{
}
public static class TechnologyStackBase
{
public Long id = null;
public String name = null;
public String vendorName = null;
public String description = null;
public String appUrl = null;
public String screenshotUrl = null;
public Date created = null;
public String createdBy = null;
public Date lastModified = null;
public String lastModifiedBy = null;
public Boolean isLocked = null;
public String ownerId = null;
public String slug = null;
@StringLength(MaximumLength=2147483647)
public String details = null;
@StringLength(MaximumLength=2147483647)
public String detailsHtml = null;
public Date lastStatusUpdate = null;
public Integer organizationId = null;
public Long commentsPostId = null;
public Integer viewCount = null;
public Integer favCount = null;
public Long getId() { return id; }
public TechnologyStackBase setId(Long value) { this.id = value; return this; }
public String getName() { return name; }
public TechnologyStackBase setName(String value) { this.name = value; return this; }
public String getVendorName() { return vendorName; }
public TechnologyStackBase setVendorName(String value) { this.vendorName = value; return this; }
public String getDescription() { return description; }
public TechnologyStackBase setDescription(String value) { this.description = value; return this; }
public String getAppUrl() { return appUrl; }
public TechnologyStackBase setAppUrl(String value) { this.appUrl = value; return this; }
public String getScreenshotUrl() { return screenshotUrl; }
public TechnologyStackBase setScreenshotUrl(String value) { this.screenshotUrl = value; return this; }
public Date getCreated() { return created; }
public TechnologyStackBase setCreated(Date value) { this.created = value; return this; }
public String getCreatedBy() { return createdBy; }
public TechnologyStackBase setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getLastModified() { return lastModified; }
public TechnologyStackBase setLastModified(Date value) { this.lastModified = value; return this; }
public String getLastModifiedBy() { return lastModifiedBy; }
public TechnologyStackBase setLastModifiedBy(String value) { this.lastModifiedBy = value; return this; }
public Boolean getIsLocked() { return isLocked; }
public TechnologyStackBase setIsLocked(Boolean value) { this.isLocked = value; return this; }
public String getOwnerId() { return ownerId; }
public TechnologyStackBase setOwnerId(String value) { this.ownerId = value; return this; }
public String getSlug() { return slug; }
public TechnologyStackBase setSlug(String value) { this.slug = value; return this; }
public String getDetails() { return details; }
public TechnologyStackBase setDetails(String value) { this.details = value; return this; }
public String getDetailsHtml() { return detailsHtml; }
public TechnologyStackBase setDetailsHtml(String value) { this.detailsHtml = value; return this; }
public Date getLastStatusUpdate() { return lastStatusUpdate; }
public TechnologyStackBase setLastStatusUpdate(Date value) { this.lastStatusUpdate = value; return this; }
public Integer getOrganizationId() { return organizationId; }
public TechnologyStackBase setOrganizationId(Integer value) { this.organizationId = value; return this; }
public Long getCommentsPostId() { return commentsPostId; }
public TechnologyStackBase setCommentsPostId(Long value) { this.commentsPostId = value; return this; }
public Integer getViewCount() { return viewCount; }
public TechnologyStackBase setViewCount(Integer value) { this.viewCount = value; return this; }
public Integer getFavCount() { return favCount; }
public TechnologyStackBase setFavCount(Integer value) { this.favCount = value; return this; }
}
public static class TechnologyStackView
{
public Long id = null;
public String name = null;
public String vendorName = null;
public String description = null;
public String appUrl = null;
public String screenshotUrl = null;
public Date created = null;
public String createdBy = null;
public Date lastModified = null;
public String lastModifiedBy = null;
public Boolean isLocked = null;
public String ownerId = null;
public String slug = null;
public String details = null;
public String detailsHtml = null;
public Date lastStatusUpdate = null;
public Integer organizationId = null;
public Long commentsPostId = null;
public Integer viewCount = null;
public Integer favCount = null;
public Long getId() { return id; }
public TechnologyStackView setId(Long value) { this.id = value; return this; }
public String getName() { return name; }
public TechnologyStackView setName(String value) { this.name = value; return this; }
public String getVendorName() { return vendorName; }
public TechnologyStackView setVendorName(String value) { this.vendorName = value; return this; }
public String getDescription() { return description; }
public TechnologyStackView setDescription(String value) { this.description = value; return this; }
public String getAppUrl() { return appUrl; }
public TechnologyStackView setAppUrl(String value) { this.appUrl = value; return this; }
public String getScreenshotUrl() { return screenshotUrl; }
public TechnologyStackView setScreenshotUrl(String value) { this.screenshotUrl = value; return this; }
public Date getCreated() { return created; }
public TechnologyStackView setCreated(Date value) { this.created = value; return this; }
public String getCreatedBy() { return createdBy; }
public TechnologyStackView setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getLastModified() { return lastModified; }
public TechnologyStackView setLastModified(Date value) { this.lastModified = value; return this; }
public String getLastModifiedBy() { return lastModifiedBy; }
public TechnologyStackView setLastModifiedBy(String value) { this.lastModifiedBy = value; return this; }
public Boolean getIsLocked() { return isLocked; }
public TechnologyStackView setIsLocked(Boolean value) { this.isLocked = value; return this; }
public String getOwnerId() { return ownerId; }
public TechnologyStackView setOwnerId(String value) { this.ownerId = value; return this; }
public String getSlug() { return slug; }
public TechnologyStackView setSlug(String value) { this.slug = value; return this; }
public String getDetails() { return details; }
public TechnologyStackView setDetails(String value) { this.details = value; return this; }
public String getDetailsHtml() { return detailsHtml; }
public TechnologyStackView setDetailsHtml(String value) { this.detailsHtml = value; return this; }
public Date getLastStatusUpdate() { return lastStatusUpdate; }
public TechnologyStackView setLastStatusUpdate(Date value) { this.lastStatusUpdate = value; return this; }
public Integer getOrganizationId() { return organizationId; }
public TechnologyStackView setOrganizationId(Integer value) { this.organizationId = value; return this; }
public Long getCommentsPostId() { return commentsPostId; }
public TechnologyStackView setCommentsPostId(Long value) { this.commentsPostId = value; return this; }
public Integer getViewCount() { return viewCount; }
public TechnologyStackView setViewCount(Integer value) { this.viewCount = value; return this; }
public Integer getFavCount() { return favCount; }
public TechnologyStackView setFavCount(Integer value) { this.favCount = value; return this; }
}
@DataContract
public static class QueryResponse<T>
{
@DataMember(Order=1)
public Integer offset = null;
@DataMember(Order=2)
public Integer total = null;
@DataMember(Order=3)
public ArrayList<Post> results = null;
@DataMember(Order=4)
public HashMap<String,String> meta = null;
@DataMember(Order=5)
public ResponseStatus responseStatus = null;
public Integer getOffset() { return offset; }
public QueryResponse<T> setOffset(Integer value) { this.offset = value; return this; }
public Integer getTotal() { return total; }
public QueryResponse<T> setTotal(Integer value) { this.total = value; return this; }
public ArrayList<Post> getResults() { return results; }
public QueryResponse<T> setResults(ArrayList<Post> value) { this.results = value; return this; }
public HashMap<String,String> getMeta() { return meta; }
public QueryResponse<T> setMeta(HashMap<String,String> value) { this.meta = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public QueryResponse<T> setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
public static class Post
{
public Long id = null;
public Integer organizationId = null;
public Integer userId = null;
public PostType type = null;
public Integer categoryId = null;
public String title = null;
public String slug = null;
public String url = null;
public String imageUrl = null;
@StringLength(MaximumLength=2147483647)
public String content = null;
@StringLength(MaximumLength=2147483647)
public String contentHtml = null;
public Long pinCommentId = null;
public ArrayList<Integer> technologyIds = null;
public Date fromDate = null;
public Date toDate = null;
public String location = null;
public String metaType = null;
public String meta = null;
public Boolean approved = null;
public Long upVotes = null;
public Long downVotes = null;
public Long points = null;
public Long views = null;
public Long favorites = null;
public Integer subscribers = null;
public Integer replyCount = null;
public Integer commentsCount = null;
public Integer wordCount = null;
public Integer reportCount = null;
public Integer linksCount = null;
public Integer linkedToCount = null;
public Integer score = null;
public Integer rank = null;
public ArrayList<String> labels = null;
public ArrayList<Integer> refUserIds = null;
public ArrayList<String> refLinks = null;
public ArrayList<Integer> muteUserIds = null;
public Date lastCommentDate = null;
public Long lastCommentId = null;
public Integer lastCommentUserId = null;
public Date deleted = null;
public String deletedBy = null;
public Date locked = null;
public String lockedBy = null;
public Date hidden = null;
public String hiddenBy = null;
public String status = null;
public Date statusDate = null;
public String statusBy = null;
public Boolean archived = null;
public Date bumped = null;
public Date created = null;
public String createdBy = null;
public Date modified = null;
public String modifiedBy = null;
public Long refId = null;
public String refSource = null;
public String refUrn = null;
public Long getId() { return id; }
public Post setId(Long value) { this.id = value; return this; }
public Integer getOrganizationId() { return organizationId; }
public Post setOrganizationId(Integer value) { this.organizationId = value; return this; }
public Integer getUserId() { return userId; }
public Post setUserId(Integer value) { this.userId = value; return this; }
public PostType getType() { return type; }
public Post setType(PostType value) { this.type = value; return this; }
public Integer getCategoryId() { return categoryId; }
public Post setCategoryId(Integer value) { this.categoryId = value; return this; }
public String getTitle() { return title; }
public Post setTitle(String value) { this.title = value; return this; }
public String getSlug() { return slug; }
public Post setSlug(String value) { this.slug = value; return this; }
public String getUrl() { return url; }
public Post setUrl(String value) { this.url = value; return this; }
public String getImageUrl() { return imageUrl; }
public Post setImageUrl(String value) { this.imageUrl = value; return this; }
public String getContent() { return content; }
public Post setContent(String value) { this.content = value; return this; }
public String getContentHtml() { return contentHtml; }
public Post setContentHtml(String value) { this.contentHtml = value; return this; }
public Long getPinCommentId() { return pinCommentId; }
public Post setPinCommentId(Long value) { this.pinCommentId = value; return this; }
public ArrayList<Integer> getTechnologyIds() { return technologyIds; }
public Post setTechnologyIds(ArrayList<Integer> value) { this.technologyIds = value; return this; }
public Date getFromDate() { return fromDate; }
public Post setFromDate(Date value) { this.fromDate = value; return this; }
public Date getToDate() { return toDate; }
public Post setToDate(Date value) { this.toDate = value; return this; }
public String getLocation() { return location; }
public Post setLocation(String value) { this.location = value; return this; }
public String getMetaType() { return metaType; }
public Post setMetaType(String value) { this.metaType = value; return this; }
public String getMeta() { return meta; }
public Post setMeta(String value) { this.meta = value; return this; }
public Boolean isApproved() { return approved; }
public Post setApproved(Boolean value) { this.approved = value; return this; }
public Long getUpVotes() { return upVotes; }
public Post setUpVotes(Long value) { this.upVotes = value; return this; }
public Long getDownVotes() { return downVotes; }
public Post setDownVotes(Long value) { this.downVotes = value; return this; }
public Long getPoints() { return points; }
public Post setPoints(Long value) { this.points = value; return this; }
public Long getViews() { return views; }
public Post setViews(Long value) { this.views = value; return this; }
public Long getFavorites() { return favorites; }
public Post setFavorites(Long value) { this.favorites = value; return this; }
public Integer getSubscribers() { return subscribers; }
public Post setSubscribers(Integer value) { this.subscribers = value; return this; }
public Integer getReplyCount() { return replyCount; }
public Post setReplyCount(Integer value) { this.replyCount = value; return this; }
public Integer getCommentsCount() { return commentsCount; }
public Post setCommentsCount(Integer value) { this.commentsCount = value; return this; }
public Integer getWordCount() { return wordCount; }
public Post setWordCount(Integer value) { this.wordCount = value; return this; }
public Integer getReportCount() { return reportCount; }
public Post setReportCount(Integer value) { this.reportCount = value; return this; }
public Integer getLinksCount() { return linksCount; }
public Post setLinksCount(Integer value) { this.linksCount = value; return this; }
public Integer getLinkedToCount() { return linkedToCount; }
public Post setLinkedToCount(Integer value) { this.linkedToCount = value; return this; }
public Integer getScore() { return score; }
public Post setScore(Integer value) { this.score = value; return this; }
public Integer getRank() { return rank; }
public Post setRank(Integer value) { this.rank = value; return this; }
public ArrayList<String> getLabels() { return labels; }
public Post setLabels(ArrayList<String> value) { this.labels = value; return this; }
public ArrayList<Integer> getRefUserIds() { return refUserIds; }
public Post setRefUserIds(ArrayList<Integer> value) { this.refUserIds = value; return this; }
public ArrayList<String> getRefLinks() { return refLinks; }
public Post setRefLinks(ArrayList<String> value) { this.refLinks = value; return this; }
public ArrayList<Integer> getMuteUserIds() { return muteUserIds; }
public Post setMuteUserIds(ArrayList<Integer> value) { this.muteUserIds = value; return this; }
public Date getLastCommentDate() { return lastCommentDate; }
public Post setLastCommentDate(Date value) { this.lastCommentDate = value; return this; }
public Long getLastCommentId() { return lastCommentId; }
public Post setLastCommentId(Long value) { this.lastCommentId = value; return this; }
public Integer getLastCommentUserId() { return lastCommentUserId; }
public Post setLastCommentUserId(Integer value) { this.lastCommentUserId = value; return this; }
public Date getDeleted() { return deleted; }
public Post setDeleted(Date value) { this.deleted = value; return this; }
public String getDeletedBy() { return deletedBy; }
public Post setDeletedBy(String value) { this.deletedBy = value; return this; }
public Date getLocked() { return locked; }
public Post setLocked(Date value) { this.locked = value; return this; }
public String getLockedBy() { return lockedBy; }
public Post setLockedBy(String value) { this.lockedBy = value; return this; }
public Date getHidden() { return hidden; }
public Post setHidden(Date value) { this.hidden = value; return this; }
public String getHiddenBy() { return hiddenBy; }
public Post setHiddenBy(String value) { this.hiddenBy = value; return this; }
public String getStatus() { return status; }
public Post setStatus(String value) { this.status = value; return this; }
public Date getStatusDate() { return statusDate; }
public Post setStatusDate(Date value) { this.statusDate = value; return this; }
public String getStatusBy() { return statusBy; }
public Post setStatusBy(String value) { this.statusBy = value; return this; }
public Boolean isArchived() { return archived; }
public Post setArchived(Boolean value) { this.archived = value; return this; }
public Date getBumped() { return bumped; }
public Post setBumped(Date value) { this.bumped = value; return this; }
public Date getCreated() { return created; }
public Post setCreated(Date value) { this.created = value; return this; }
public String getCreatedBy() { return createdBy; }
public Post setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getModified() { return modified; }
public Post setModified(Date value) { this.modified = value; return this; }
public String getModifiedBy() { return modifiedBy; }
public Post setModifiedBy(String value) { this.modifiedBy = value; return this; }
public Long getRefId() { return refId; }
public Post setRefId(Long value) { this.refId = value; return this; }
public String getRefSource() { return refSource; }
public Post setRefSource(String value) { this.refSource = value; return this; }
public String getRefUrn() { return refUrn; }
public Post setRefUrn(String value) { this.refUrn = value; return this; }
}
public static enum PostType
{
Announcement,
Post,
Showcase,
Question,
Request;
}
}
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.
POST /techstacks/query HTTP/1.1
Host: techstacks.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ids":[0],"name":"String","vendorName":"String","nameContains":"String","vendorNameContains":"String","descriptionContains":"String","skip":0,"take":0,"orderBy":"String","orderByDesc":"String","include":"String","fields":"String","meta":{"String":"String"}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"offset":0,"total":0,"results":[{"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}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}