TechStacks!

<back to all web services

GetOrganizationMembers

Organization
The following routes are available for this service:
GET/orgs/{Id}/members
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GetOrganizationMembers implements IGet
    {
        public Integer id = null;
        
        public Integer getId() { return id; }
        public GetOrganizationMembers setId(Integer value) { this.id = value; return this; }
    }

    public static class GetOrganizationMembersResponse
    {
        public Integer organizationId = null;
        public ArrayList<OrganizationMember> results = null;
        public ResponseStatus responseStatus = null;
        
        public Integer getOrganizationId() { return organizationId; }
        public GetOrganizationMembersResponse setOrganizationId(Integer value) { this.organizationId = value; return this; }
        public ArrayList<OrganizationMember> getResults() { return results; }
        public GetOrganizationMembersResponse setResults(ArrayList<OrganizationMember> value) { this.results = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public GetOrganizationMembersResponse setResponseStatus(ResponseStatus value) { this.responseStatus = 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; }
    }

}

Java GetOrganizationMembers DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /orgs/{Id}/members HTTP/1.1 
Host: techstacks.io 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	organizationId: 0,
	results: 
	[
		{
			id: 0,
			organizationId: 0,
			userId: 0,
			userName: String,
			isOwner: False,
			isModerator: False,
			denyAll: False,
			denyPosts: False,
			denyComments: False,
			notes: String
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}