| GET | /orgs/{Id} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GetOrganization implements IGet
{
public Integer id = null;
public Integer getId() { return id; }
public GetOrganization setId(Integer value) { this.id = value; return this; }
}
public static class GetOrganizationResponse
{
public Long cache = null;
public Integer id = null;
public String slug = null;
public Organization organization = null;
public ArrayList<OrganizationLabel> labels = new ArrayList<OrganizationLabel>();
public ArrayList<Category> categories = new ArrayList<Category>();
public ArrayList<OrganizationMember> owners = new ArrayList<OrganizationMember>();
public ArrayList<OrganizationMember> moderators = new ArrayList<OrganizationMember>();
public Long membersCount = null;
public ResponseStatus responseStatus = null;
public Long getCache() { return cache; }
public GetOrganizationResponse setCache(Long value) { this.cache = value; return this; }
public Integer getId() { return id; }
public GetOrganizationResponse setId(Integer value) { this.id = value; return this; }
public String getSlug() { return slug; }
public GetOrganizationResponse setSlug(String value) { this.slug = value; return this; }
public Organization getOrganization() { return organization; }
public GetOrganizationResponse setOrganization(Organization value) { this.organization = value; return this; }
public ArrayList<OrganizationLabel> getLabels() { return labels; }
public GetOrganizationResponse setLabels(ArrayList<OrganizationLabel> value) { this.labels = value; return this; }
public ArrayList<Category> getCategories() { return categories; }
public GetOrganizationResponse setCategories(ArrayList<Category> value) { this.categories = value; return this; }
public ArrayList<OrganizationMember> getOwners() { return owners; }
public GetOrganizationResponse setOwners(ArrayList<OrganizationMember> value) { this.owners = value; return this; }
public ArrayList<OrganizationMember> getModerators() { return moderators; }
public GetOrganizationResponse setModerators(ArrayList<OrganizationMember> value) { this.moderators = value; return this; }
public Long getMembersCount() { return membersCount; }
public GetOrganizationResponse setMembersCount(Long value) { this.membersCount = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetOrganizationResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
public static class Organization
{
public Integer id = null;
public String name = null;
public String slug = null;
public String description = null;
public String descriptionHtml = null;
public String color = null;
public String textColor = null;
public String linkColor = null;
public String backgroundColor = null;
public String backgroundUrl = null;
public String logoUrl = null;
public String heroUrl = null;
public String lang = null;
public String defaultPostType = null;
public ArrayList<String> defaultSubscriptionPostTypes = new ArrayList<String>();
public ArrayList<String> postTypes = new ArrayList<String>();
public ArrayList<String> moderatorPostTypes = new ArrayList<String>();
public Integer deletePostsWithReportCount = null;
public Boolean disableInvites = null;
public Long upVotes = null;
public Long downVotes = null;
public Long views = null;
public Long favorites = null;
public Integer subscribers = null;
public Integer commentsCount = null;
public Integer postsCount = null;
public Integer score = null;
public Integer rank = null;
public Long refId = null;
public String refSource = null;
public Date hidden = null;
public String hiddenBy = null;
public Date locked = null;
public String lockedBy = null;
public Date deleted = null;
public String deletedBy = null;
public Date created = null;
public String createdBy = null;
public Date modified = null;
public String modifiedBy = null;
public Integer getId() { return id; }
public Organization setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public Organization setName(String value) { this.name = value; return this; }
public String getSlug() { return slug; }
public Organization setSlug(String value) { this.slug = value; return this; }
public String getDescription() { return description; }
public Organization setDescription(String value) { this.description = value; return this; }
public String getDescriptionHtml() { return descriptionHtml; }
public Organization setDescriptionHtml(String value) { this.descriptionHtml = value; return this; }
public String getColor() { return color; }
public Organization setColor(String value) { this.color = value; return this; }
public String getTextColor() { return textColor; }
public Organization setTextColor(String value) { this.textColor = value; return this; }
public String getLinkColor() { return linkColor; }
public Organization setLinkColor(String value) { this.linkColor = value; return this; }
public String getBackgroundColor() { return backgroundColor; }
public Organization setBackgroundColor(String value) { this.backgroundColor = value; return this; }
public String getBackgroundUrl() { return backgroundUrl; }
public Organization setBackgroundUrl(String value) { this.backgroundUrl = value; return this; }
public String getLogoUrl() { return logoUrl; }
public Organization setLogoUrl(String value) { this.logoUrl = value; return this; }
public String getHeroUrl() { return heroUrl; }
public Organization setHeroUrl(String value) { this.heroUrl = value; return this; }
public String getLang() { return lang; }
public Organization setLang(String value) { this.lang = value; return this; }
public String getDefaultPostType() { return defaultPostType; }
public Organization setDefaultPostType(String value) { this.defaultPostType = value; return this; }
public ArrayList<String> getDefaultSubscriptionPostTypes() { return defaultSubscriptionPostTypes; }
public Organization setDefaultSubscriptionPostTypes(ArrayList<String> value) { this.defaultSubscriptionPostTypes = value; return this; }
public ArrayList<String> getPostTypes() { return postTypes; }
public Organization setPostTypes(ArrayList<String> value) { this.postTypes = value; return this; }
public ArrayList<String> getModeratorPostTypes() { return moderatorPostTypes; }
public Organization setModeratorPostTypes(ArrayList<String> value) { this.moderatorPostTypes = value; return this; }
public Integer getDeletePostsWithReportCount() { return deletePostsWithReportCount; }
public Organization setDeletePostsWithReportCount(Integer value) { this.deletePostsWithReportCount = value; return this; }
public Boolean isDisableInvites() { return disableInvites; }
public Organization setDisableInvites(Boolean value) { this.disableInvites = value; return this; }
public Long getUpVotes() { return upVotes; }
public Organization setUpVotes(Long value) { this.upVotes = value; return this; }
public Long getDownVotes() { return downVotes; }
public Organization setDownVotes(Long value) { this.downVotes = value; return this; }
public Long getViews() { return views; }
public Organization setViews(Long value) { this.views = value; return this; }
public Long getFavorites() { return favorites; }
public Organization setFavorites(Long value) { this.favorites = value; return this; }
public Integer getSubscribers() { return subscribers; }
public Organization setSubscribers(Integer value) { this.subscribers = value; return this; }
public Integer getCommentsCount() { return commentsCount; }
public Organization setCommentsCount(Integer value) { this.commentsCount = value; return this; }
public Integer getPostsCount() { return postsCount; }
public Organization setPostsCount(Integer value) { this.postsCount = value; return this; }
public Integer getScore() { return score; }
public Organization setScore(Integer value) { this.score = value; return this; }
public Integer getRank() { return rank; }
public Organization setRank(Integer value) { this.rank = value; return this; }
public Long getRefId() { return refId; }
public Organization setRefId(Long value) { this.refId = value; return this; }
public String getRefSource() { return refSource; }
public Organization setRefSource(String value) { this.refSource = value; return this; }
public Date getHidden() { return hidden; }
public Organization setHidden(Date value) { this.hidden = value; return this; }
public String getHiddenBy() { return hiddenBy; }
public Organization setHiddenBy(String value) { this.hiddenBy = value; return this; }
public Date getLocked() { return locked; }
public Organization setLocked(Date value) { this.locked = value; return this; }
public String getLockedBy() { return lockedBy; }
public Organization setLockedBy(String value) { this.lockedBy = value; return this; }
public Date getDeleted() { return deleted; }
public Organization setDeleted(Date value) { this.deleted = value; return this; }
public String getDeletedBy() { return deletedBy; }
public Organization setDeletedBy(String value) { this.deletedBy = value; return this; }
public Date getCreated() { return created; }
public Organization setCreated(Date value) { this.created = value; return this; }
public String getCreatedBy() { return createdBy; }
public Organization setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getModified() { return modified; }
public Organization setModified(Date value) { this.modified = value; return this; }
public String getModifiedBy() { return modifiedBy; }
public Organization setModifiedBy(String value) { this.modifiedBy = value; return this; }
}
public static class OrganizationLabel
{
public String slug = null;
public Integer organizationId = null;
public String description = null;
public String color = null;
public String getSlug() { return slug; }
public OrganizationLabel setSlug(String value) { this.slug = value; return this; }
public Integer getOrganizationId() { return organizationId; }
public OrganizationLabel setOrganizationId(Integer value) { this.organizationId = value; return this; }
public String getDescription() { return description; }
public OrganizationLabel setDescription(String value) { this.description = value; return this; }
public String getColor() { return color; }
public OrganizationLabel setColor(String value) { this.color = value; return this; }
}
public static class Category
{
public Integer id = null;
public Integer organizationId = null;
public String name = null;
public String slug = null;
public String description = null;
public String color = null;
public ArrayList<Integer> technologyIds = new ArrayList<Integer>();
public Integer commentsCount = null;
public Integer postsCount = null;
public Integer score = null;
public Integer rank = null;
public Integer getId() { return id; }
public Category setId(Integer value) { this.id = value; return this; }
public Integer getOrganizationId() { return organizationId; }
public Category setOrganizationId(Integer value) { this.organizationId = value; return this; }
public String getName() { return name; }
public Category setName(String value) { this.name = value; return this; }
public String getSlug() { return slug; }
public Category setSlug(String value) { this.slug = value; return this; }
public String getDescription() { return description; }
public Category setDescription(String value) { this.description = value; return this; }
public String getColor() { return color; }
public Category setColor(String value) { this.color = value; return this; }
public ArrayList<Integer> getTechnologyIds() { return technologyIds; }
public Category setTechnologyIds(ArrayList<Integer> value) { this.technologyIds = value; return this; }
public Integer getCommentsCount() { return commentsCount; }
public Category setCommentsCount(Integer value) { this.commentsCount = value; return this; }
public Integer getPostsCount() { return postsCount; }
public Category setPostsCount(Integer value) { this.postsCount = value; return this; }
public Integer getScore() { return score; }
public Category setScore(Integer value) { this.score = value; return this; }
public Integer getRank() { return rank; }
public Category setRank(Integer value) { this.rank = value; return this; }
}
public static class OrganizationMember
{
public Integer id = null;
public Integer organizationId = null;
public Integer userId = null;
public String userName = null;
public Boolean isOwner = null;
public Boolean isModerator = null;
public Boolean denyAll = null;
public Boolean denyPosts = null;
public Boolean denyComments = null;
public String notes = null;
public Integer getId() { return id; }
public OrganizationMember setId(Integer value) { this.id = value; return this; }
public Integer getOrganizationId() { return organizationId; }
public OrganizationMember setOrganizationId(Integer value) { this.organizationId = value; return this; }
public Integer getUserId() { return userId; }
public OrganizationMember setUserId(Integer value) { this.userId = value; return this; }
public String getUserName() { return userName; }
public OrganizationMember setUserName(String value) { this.userName = value; return this; }
public Boolean getIsOwner() { return isOwner; }
public OrganizationMember setIsOwner(Boolean value) { this.isOwner = value; return this; }
public Boolean getIsModerator() { return isModerator; }
public OrganizationMember setIsModerator(Boolean value) { this.isModerator = value; return this; }
public Boolean isDenyAll() { return denyAll; }
public OrganizationMember setDenyAll(Boolean value) { this.denyAll = value; return this; }
public Boolean isDenyPosts() { return denyPosts; }
public OrganizationMember setDenyPosts(Boolean value) { this.denyPosts = value; return this; }
public Boolean isDenyComments() { return denyComments; }
public OrganizationMember setDenyComments(Boolean value) { this.denyComments = value; return this; }
public String getNotes() { return notes; }
public OrganizationMember setNotes(String value) { this.notes = value; return this; }
}
}
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.
GET /orgs/{Id} HTTP/1.1
Host: techstacks.io
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
cache: 0,
id: 0,
slug: String,
organization:
{
id: 0,
name: String,
slug: String,
description: String,
descriptionHtml: String,
color: String,
textColor: String,
linkColor: String,
backgroundColor: String,
backgroundUrl: String,
logoUrl: String,
heroUrl: String,
lang: String,
defaultPostType: String,
defaultSubscriptionPostTypes:
[
String
],
postTypes:
[
String
],
moderatorPostTypes:
[
String
],
deletePostsWithReportCount: 0,
disableInvites: False,
upVotes: 0,
downVotes: 0,
views: 0,
favorites: 0,
subscribers: 0,
commentsCount: 0,
postsCount: 0,
score: 0,
rank: 0,
refId: 0,
refSource: String,
hidden: 0001-01-01,
hiddenBy: String,
locked: 0001-01-01,
lockedBy: String,
deleted: 0001-01-01,
deletedBy: String,
created: 0001-01-01,
createdBy: String,
modified: 0001-01-01,
modifiedBy: String
},
labels:
[
{
slug: String,
organizationId: 0,
description: String,
color: String
}
],
categories:
[
{
id: 0,
organizationId: 0,
name: String,
slug: String,
description: String,
color: String,
technologyIds:
[
0
],
commentsCount: 0,
postsCount: 0,
score: 0,
rank: 0
}
],
owners:
[
{
id: 0,
organizationId: 0,
userId: 0,
userName: String,
isOwner: False,
isModerator: False,
denyAll: False,
denyPosts: False,
denyComments: False,
notes: String
}
],
moderators:
[
{
id: 0,
organizationId: 0,
userId: 0,
userName: String,
isOwner: False,
isModerator: False,
denyAll: False,
denyPosts: False,
denyComments: False,
notes: String
}
],
membersCount: 0,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}