| 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 = null;
public ArrayList<Category> categories = null;
public ArrayList<OrganizationMember> owners = null;
public ArrayList<OrganizationMember> moderators = null;
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 = null;
public ArrayList<String> postTypes = null;
public ArrayList<String> moderatorPostTypes = null;
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 = null;
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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetOrganizationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel">
<Cache>0</Cache>
<Categories xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:Category>
<d2p1:Color>String</d2p1:Color>
<d2p1:CommentsCount>0</d2p1:CommentsCount>
<d2p1:Description>String</d2p1:Description>
<d2p1:Id>0</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:OrganizationId>0</d2p1:OrganizationId>
<d2p1:PostsCount>0</d2p1:PostsCount>
<d2p1:Rank>0</d2p1:Rank>
<d2p1:Score>0</d2p1:Score>
<d2p1:Slug>String</d2p1:Slug>
<d2p1:TechnologyIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>0</d4p1:int>
</d2p1:TechnologyIds>
</d2p1:Category>
</Categories>
<Id>0</Id>
<Labels xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:OrganizationLabel>
<d2p1:Color>String</d2p1:Color>
<d2p1:Description>String</d2p1:Description>
<d2p1:OrganizationId>0</d2p1:OrganizationId>
<d2p1:Slug>String</d2p1:Slug>
</d2p1:OrganizationLabel>
</Labels>
<MembersCount>0</MembersCount>
<Moderators xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:OrganizationMember>
<d2p1:DenyAll>false</d2p1:DenyAll>
<d2p1:DenyComments>false</d2p1:DenyComments>
<d2p1:DenyPosts>false</d2p1:DenyPosts>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsModerator>false</d2p1:IsModerator>
<d2p1:IsOwner>false</d2p1:IsOwner>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:OrganizationId>0</d2p1:OrganizationId>
<d2p1:UserId>0</d2p1:UserId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:OrganizationMember>
</Moderators>
<Organization xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:BackgroundColor>String</d2p1:BackgroundColor>
<d2p1:BackgroundUrl>String</d2p1:BackgroundUrl>
<d2p1:Color>String</d2p1:Color>
<d2p1:CommentsCount>0</d2p1:CommentsCount>
<d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
<d2p1:CreatedBy>String</d2p1:CreatedBy>
<d2p1:DefaultPostType>String</d2p1:DefaultPostType>
<d2p1:DefaultSubscriptionPostTypes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</d2p1:DefaultSubscriptionPostTypes>
<d2p1:DeletePostsWithReportCount>0</d2p1:DeletePostsWithReportCount>
<d2p1:Deleted>0001-01-01T00:00:00</d2p1:Deleted>
<d2p1:DeletedBy>String</d2p1:DeletedBy>
<d2p1:Description>String</d2p1:Description>
<d2p1:DescriptionHtml>String</d2p1:DescriptionHtml>
<d2p1:DisableInvites>false</d2p1:DisableInvites>
<d2p1:DownVotes>0</d2p1:DownVotes>
<d2p1:Favorites>0</d2p1:Favorites>
<d2p1:HeroUrl>String</d2p1:HeroUrl>
<d2p1:Hidden>0001-01-01T00:00:00</d2p1:Hidden>
<d2p1:HiddenBy>String</d2p1:HiddenBy>
<d2p1:Id>0</d2p1:Id>
<d2p1:Lang>String</d2p1:Lang>
<d2p1:LinkColor>String</d2p1:LinkColor>
<d2p1:Locked>0001-01-01T00:00:00</d2p1:Locked>
<d2p1:LockedBy>String</d2p1:LockedBy>
<d2p1:LogoUrl>String</d2p1:LogoUrl>
<d2p1:ModeratorPostTypes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</d2p1:ModeratorPostTypes>
<d2p1:Modified>0001-01-01T00:00:00</d2p1:Modified>
<d2p1:ModifiedBy>String</d2p1:ModifiedBy>
<d2p1:Name>String</d2p1:Name>
<d2p1:PostTypes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</d2p1:PostTypes>
<d2p1:PostsCount>0</d2p1:PostsCount>
<d2p1:Rank>0</d2p1:Rank>
<d2p1:RefId>0</d2p1:RefId>
<d2p1:RefSource>String</d2p1:RefSource>
<d2p1:Score>0</d2p1:Score>
<d2p1:Slug>String</d2p1:Slug>
<d2p1:Subscribers>0</d2p1:Subscribers>
<d2p1:TextColor>String</d2p1:TextColor>
<d2p1:UpVotes>0</d2p1:UpVotes>
<d2p1:Views>0</d2p1:Views>
</Organization>
<Owners xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:OrganizationMember>
<d2p1:DenyAll>false</d2p1:DenyAll>
<d2p1:DenyComments>false</d2p1:DenyComments>
<d2p1:DenyPosts>false</d2p1:DenyPosts>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsModerator>false</d2p1:IsModerator>
<d2p1:IsOwner>false</d2p1:IsOwner>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:OrganizationId>0</d2p1:OrganizationId>
<d2p1:UserId>0</d2p1:UserId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:OrganizationMember>
</Owners>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1: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>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1: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>
</d2p1:Meta>
</ResponseStatus>
<Slug>String</Slug>
</GetOrganizationResponse>