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 net.servicestack.client.*


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

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

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

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

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

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

Kotlin GetOrganizationBySlug DTOs

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

HTTP + CSV

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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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-01T00:00:00.0000000","hiddenBy":"String","locked":"0001-01-01T00:00:00.0000000","lockedBy":"String","deleted":"0001-01-01T00:00:00.0000000","deletedBy":"String","created":"0001-01-01T00:00:00.0000000","createdBy":"String","modified":"0001-01-01T00:00:00.0000000","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"}}}