TechStacks!

<back to all web services

GetOrganizationBySlug

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


open class GetOrganizationBySlug : IGet
{
    open var slug:String? = null
}

open class GetOrganizationResponse
{
    open var cache:Long? = null
    open var id:Int? = null
    open var slug:String? = null
    open var organization:Organization? = null
    open var labels:ArrayList<OrganizationLabel>? = null
    open var categories:ArrayList<Category>? = null
    open var owners:ArrayList<OrganizationMember>? = null
    open var moderators:ArrayList<OrganizationMember>? = null
    open var membersCount:Long? = null
    open var responseStatus:ResponseStatus? = null
}

open class Organization
{
    open var id:Int? = null
    open var name:String? = null
    open var slug:String? = null
    open var description:String? = null
    open var descriptionHtml:String? = null
    open var color:String? = null
    open var textColor:String? = null
    open var linkColor:String? = null
    open var backgroundColor:String? = null
    open var backgroundUrl:String? = null
    open var logoUrl:String? = null
    open var heroUrl:String? = null
    open var lang:String? = null
    open var defaultPostType:String? = null
    open var defaultSubscriptionPostTypes:ArrayList<String>? = null
    open var postTypes:ArrayList<String>? = null
    open var moderatorPostTypes:ArrayList<String>? = null
    open var deletePostsWithReportCount:Int? = null
    open var disableInvites:Boolean? = null
    open var upVotes:Long? = null
    open var downVotes:Long? = null
    open var views:Long? = null
    open var favorites:Long? = null
    open var subscribers:Int? = null
    open var commentsCount:Int? = null
    open var postsCount:Int? = null
    open var score:Int? = null
    open var rank:Int? = null
    open var refId:Long? = null
    open var refSource:String? = null
    open var hidden:Date? = null
    open var hiddenBy:String? = null
    open var locked:Date? = null
    open var lockedBy:String? = null
    open var deleted:Date? = null
    open var deletedBy:String? = null
    open var created:Date? = null
    open var createdBy:String? = null
    open var modified:Date? = null
    open var modifiedBy:String? = null
}

open class OrganizationLabel
{
    open var slug:String? = null
    open var organizationId:Int? = null
    open var description:String? = null
    open var color:String? = null
}

open class Category
{
    open var id:Int? = null
    open var organizationId:Int? = null
    open var name:String? = null
    open var slug:String? = null
    open var description:String? = null
    open var color:String? = null
    open var technologyIds:ArrayList<Int>? = null
    open var commentsCount:Int? = null
    open var postsCount:Int? = null
    open var score:Int? = null
    open var rank:Int? = null
}

open class OrganizationMember
{
    open var id:Int? = null
    open var organizationId:Int? = null
    open var userId:Int? = null
    open var userName:String? = null
    open var isOwner:Boolean? = null
    open var isModerator:Boolean? = null
    open var denyAll:Boolean? = null
    open var denyPosts:Boolean? = null
    open var denyComments:Boolean? = null
    open var notes:String? = null
}

Kotlin GetOrganizationBySlug 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 /organizations/{Slug} 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
		}
	}
}