| All Verbs | /user/organizations |
|---|
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 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 OrganizationMemberInvite() =
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 Dismissed:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type OrganizationSubscription() =
member val Id:Int64 = new Int64() 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 PostTypes:String[] = null with get,set
member val FrequencyDays:Nullable<Int32> = new Nullable<Int32>() with get,set
member val LastSyncedId:Nullable<Int64> = new Nullable<Int64>() with get,set
member val LastSynced:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val Created:DateTime = new DateTime() with get,set
[<AllowNullLiteral>]
type GetUserOrganizationsResponse() =
member val Members:ResizeArray<OrganizationMember> = null with get,set
member val MemberInvites:ResizeArray<OrganizationMemberInvite> = null with get,set
member val Subscriptions:ResizeArray<OrganizationSubscription> = null with get,set
[<AllowNullLiteral>]
type GetUserOrganizations() =
interface IGet
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<GetUserOrganizations xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetUserOrganizationsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel">
<MemberInvites xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:OrganizationMemberInvite>
<d2p1:Dismissed>0001-01-01T00:00:00</d2p1:Dismissed>
<d2p1:Id>0</d2p1:Id>
<d2p1:OrganizationId>0</d2p1:OrganizationId>
<d2p1:UserId>0</d2p1:UserId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:OrganizationMemberInvite>
</MemberInvites>
<Members xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:OrganizationMember>
<d2p1:DenyAll>false</d2p1:DenyAll>
<d2p1:DenyComments>false</d2p1:DenyComments>
<d2p1:DenyPosts>false</d2p1:DenyPosts>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsModerator>false</d2p1:IsModerator>
<d2p1:IsOwner>false</d2p1:IsOwner>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:OrganizationId>0</d2p1:OrganizationId>
<d2p1:UserId>0</d2p1:UserId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:OrganizationMember>
</Members>
<Subscriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:OrganizationSubscription>
<d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
<d2p1:FrequencyDays>0</d2p1:FrequencyDays>
<d2p1:Id>0</d2p1:Id>
<d2p1:LastSynced>0001-01-01T00:00:00</d2p1:LastSynced>
<d2p1:LastSyncedId>0</d2p1:LastSyncedId>
<d2p1:OrganizationId>0</d2p1:OrganizationId>
<d2p1:PostTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d2p1:PostTypes>
<d2p1:UserId>0</d2p1:UserId>
<d2p1:UserName>String</d2p1:UserName>
</d2p1:OrganizationSubscription>
</Subscriptions>
</GetUserOrganizationsResponse>