GET | /organizations/{Slug} |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TechStacks.ServiceModel
Imports TechStacks.ServiceModel.Types
Namespace Global
Namespace TechStacks.ServiceModel
Public Partial Class GetOrganizationBySlug
Implements IGet
Public Overridable Property Slug As String
End Class
Public Partial Class GetOrganizationResponse
Public Overridable Property Cache As Long
Public Overridable Property Id As Integer
Public Overridable Property Slug As String
Public Overridable Property Organization As Organization
Public Overridable Property Labels As List(Of OrganizationLabel)
Public Overridable Property Categories As List(Of Category)
Public Overridable Property Owners As List(Of OrganizationMember)
Public Overridable Property Moderators As List(Of OrganizationMember)
Public Overridable Property MembersCount As Long
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
Namespace TechStacks.ServiceModel.Types
Public Partial Class Category
Public Overridable Property Id As Integer
Public Overridable Property OrganizationId As Integer
Public Overridable Property Name As String
Public Overridable Property Slug As String
Public Overridable Property Description As String
Public Overridable Property Color As String
Public Overridable Property TechnologyIds As Integer()
Public Overridable Property CommentsCount As Integer
Public Overridable Property PostsCount As Integer
Public Overridable Property Score As Integer
Public Overridable Property Rank As Integer
End Class
Public Partial Class Organization
Public Overridable Property Id As Integer
Public Overridable Property Name As String
Public Overridable Property Slug As String
Public Overridable Property Description As String
Public Overridable Property DescriptionHtml As String
Public Overridable Property Color As String
Public Overridable Property TextColor As String
Public Overridable Property LinkColor As String
Public Overridable Property BackgroundColor As String
Public Overridable Property BackgroundUrl As String
Public Overridable Property LogoUrl As String
Public Overridable Property HeroUrl As String
Public Overridable Property Lang As String
Public Overridable Property DefaultPostType As String
Public Overridable Property DefaultSubscriptionPostTypes As String()
Public Overridable Property PostTypes As String()
Public Overridable Property ModeratorPostTypes As String()
Public Overridable Property DeletePostsWithReportCount As Integer
Public Overridable Property DisableInvites As Boolean?
Public Overridable Property UpVotes As Long
Public Overridable Property DownVotes As Long
Public Overridable Property Views As Long
Public Overridable Property Favorites As Long
Public Overridable Property Subscribers As Integer
Public Overridable Property CommentsCount As Integer
Public Overridable Property PostsCount As Integer
Public Overridable Property Score As Integer
Public Overridable Property Rank As Integer
Public Overridable Property RefId As Long?
Public Overridable Property RefSource As String
Public Overridable Property Hidden As Date?
Public Overridable Property HiddenBy As String
Public Overridable Property Locked As Date?
Public Overridable Property LockedBy As String
Public Overridable Property Deleted As Date?
Public Overridable Property DeletedBy As String
Public Overridable Property Created As Date
Public Overridable Property CreatedBy As String
Public Overridable Property Modified As Date
Public Overridable Property ModifiedBy As String
End Class
Public Partial Class OrganizationLabel
Public Overridable Property Slug As String
Public Overridable Property OrganizationId As Integer
Public Overridable Property Description As String
Public Overridable Property Color As String
End Class
Public Partial Class OrganizationMember
Public Overridable Property Id As Integer
Public Overridable Property OrganizationId As Integer
Public Overridable Property UserId As Integer
Public Overridable Property UserName As String
Public Overridable Property IsOwner As Boolean
Public Overridable Property IsModerator As Boolean
Public Overridable Property DenyAll As Boolean
Public Overridable Property DenyPosts As Boolean
Public Overridable Property DenyComments As Boolean
Public Overridable Property Notes As String
End Class
End Namespace
End Namespace
VB.NET GetOrganizationBySlug DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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 } } }