TechStacks!

<back to all web services

GetOrganization

Organization
The following routes are available for this service:
GET/orgs/{Id}
namespace TechStacks.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Organization() = 
        member val Id:Int32 = new Int32() with get,set
        member val Name:String = null with get,set
        member val Slug:String = null with get,set
        member val Description:String = null with get,set
        member val DescriptionHtml:String = null with get,set
        member val Color:String = null with get,set
        member val TextColor:String = null with get,set
        member val LinkColor:String = null with get,set
        member val BackgroundColor:String = null with get,set
        member val BackgroundUrl:String = null with get,set
        member val LogoUrl:String = null with get,set
        member val HeroUrl:String = null with get,set
        member val Lang:String = null with get,set
        member val DefaultPostType:String = null with get,set
        member val DefaultSubscriptionPostTypes:String[] = null with get,set
        member val PostTypes:String[] = null with get,set
        member val ModeratorPostTypes:String[] = null with get,set
        member val DeletePostsWithReportCount:Int32 = new Int32() with get,set
        member val DisableInvites:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val UpVotes:Int64 = new Int64() with get,set
        member val DownVotes:Int64 = new Int64() with get,set
        member val Views:Int64 = new Int64() with get,set
        member val Favorites:Int64 = new Int64() with get,set
        member val Subscribers:Int32 = new Int32() with get,set
        member val CommentsCount:Int32 = new Int32() with get,set
        member val PostsCount:Int32 = new Int32() with get,set
        member val Score:Int32 = new Int32() with get,set
        member val Rank:Int32 = new Int32() with get,set
        member val RefId:Nullable<Int64> = new Nullable<Int64>() with get,set
        member val RefSource:String = null with get,set
        member val Hidden:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val HiddenBy:String = null with get,set
        member val Locked:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val LockedBy:String = null with get,set
        member val Deleted:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val DeletedBy:String = null with get,set
        member val Created:DateTime = new DateTime() with get,set
        member val CreatedBy:String = null with get,set
        member val Modified:DateTime = new DateTime() with get,set
        member val ModifiedBy:String = null with get,set

    [<AllowNullLiteral>]
    type OrganizationLabel() = 
        member val Slug:String = null with get,set
        member val OrganizationId:Int32 = new Int32() with get,set
        member val Description:String = null with get,set
        member val Color:String = null with get,set

    [<AllowNullLiteral>]
    type Category() = 
        member val Id:Int32 = new Int32() with get,set
        member val OrganizationId:Int32 = new Int32() with get,set
        member val Name:String = null with get,set
        member val Slug:String = null with get,set
        member val Description:String = null with get,set
        member val Color:String = null with get,set
        member val TechnologyIds:Int32[] = null with get,set
        member val CommentsCount:Int32 = new Int32() with get,set
        member val PostsCount:Int32 = new Int32() with get,set
        member val Score:Int32 = new Int32() with get,set
        member val Rank:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type OrganizationMember() = 
        member val Id:Int32 = new Int32() with get,set
        member val OrganizationId:Int32 = new Int32() with get,set
        member val UserId:Int32 = new Int32() with get,set
        member val UserName:String = null with get,set
        member val IsOwner:Boolean = new Boolean() with get,set
        member val IsModerator:Boolean = new Boolean() with get,set
        member val DenyAll:Boolean = new Boolean() with get,set
        member val DenyPosts:Boolean = new Boolean() with get,set
        member val DenyComments:Boolean = new Boolean() with get,set
        member val Notes:String = null with get,set

    [<AllowNullLiteral>]
    type GetOrganizationResponse() = 
        member val Cache:Int64 = new Int64() with get,set
        member val Id:Int32 = new Int32() with get,set
        member val Slug:String = null with get,set
        member val Organization:Organization = null with get,set
        member val Labels:ResizeArray<OrganizationLabel> = null with get,set
        member val Categories:ResizeArray<Category> = null with get,set
        member val Owners:ResizeArray<OrganizationMember> = null with get,set
        member val Moderators:ResizeArray<OrganizationMember> = null with get,set
        member val MembersCount:Int64 = new Int64() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type GetOrganization() = 
        interface IGet
        member val Id:Nullable<Int32> = new Nullable<Int32>() with get,set

F# GetOrganization DTOs

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

HTTP + OTHER

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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}