All Verbs | /user/organizations |
---|
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 GetUserOrganizations
Implements IGet
End Class
Public Partial Class GetUserOrganizationsResponse
Public Overridable Property Members As List(Of OrganizationMember)
Public Overridable Property MemberInvites As List(Of OrganizationMemberInvite)
Public Overridable Property Subscriptions As List(Of OrganizationSubscription)
End Class
End Namespace
Namespace TechStacks.ServiceModel.Types
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
Public Partial Class OrganizationMemberInvite
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 Dismissed As Date?
End Class
Public Partial Class OrganizationSubscription
Public Overridable Property Id As Long
Public Overridable Property OrganizationId As Integer
Public Overridable Property UserId As Integer
Public Overridable Property UserName As String
Public Overridable Property PostTypes As String()
Public Overridable Property FrequencyDays As Integer?
Public Overridable Property LastSyncedId As Long?
Public Overridable Property LastSynced As Date?
Public Overridable Property Created As Date
End Class
End Namespace
End Namespace
VB.NET GetUserOrganizations DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /user/organizations HTTP/1.1
Host: techstacks.io
Accept: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"members":[{"id":0,"organizationId":0,"userId":0,"userName":"String","isOwner":false,"isModerator":false,"denyAll":false,"denyPosts":false,"denyComments":false,"notes":"String"}],"memberInvites":[{"id":0,"organizationId":0,"userId":0,"userName":"String","dismissed":"0001-01-01T00:00:00.0000000"}],"subscriptions":[{"id":0,"organizationId":0,"userId":0,"userName":"String","postTypes":["String"],"frequencyDays":0,"lastSyncedId":0,"lastSynced":"0001-01-01T00:00:00.0000000","created":"0001-01-01T00:00:00.0000000"}]}