GET | /orgs/{Id}/admin |
---|
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 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 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
type FlagType =
| Violation = 0
| Spam = 1
| Abusive = 2
| Confidential = 3
| OffTopic = 4
| Other = 5
[<AllowNullLiteral>]
type PostReportInfo() =
member val Id:Int64 = new Int64() with get,set
member val OrganizationId:Int32 = new Int32() with get,set
member val PostId:Int64 = new Int64() with get,set
member val UserId:Int32 = new Int32() with get,set
member val UserName:String = null with get,set
member val FlagType:FlagType = new FlagType() with get,set
member val ReportNotes:String = null with get,set
member val Created:DateTime = new DateTime() with get,set
member val Acknowledged:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val AcknowledgedBy:String = null with get,set
member val Dismissed:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val DismissedBy:String = null with get,set
member val Title:String = null with get,set
member val ReportCount:Int32 = new Int32() with get,set
member val CreatedBy:String = null with get,set
[<AllowNullLiteral>]
type PostCommentReportInfo() =
member val Id:Int64 = new Int64() with get,set
member val OrganizationId:Int32 = new Int32() with get,set
member val PostId:Int64 = new Int64() with get,set
member val PostCommentId:Int64 = new Int64() with get,set
member val UserId:Int32 = new Int32() with get,set
member val UserName:String = null with get,set
member val FlagType:FlagType = new FlagType() with get,set
member val ReportNotes:String = null with get,set
member val Created:DateTime = new DateTime() with get,set
member val Acknowledged:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val AcknowledgedBy:String = null with get,set
member val Dismissed:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val DismissedBy:String = null with get,set
member val ContentHtml:String = null with get,set
member val ReportCount:Int32 = new Int32() with get,set
member val CreatedBy:String = null with get,set
[<AllowNullLiteral>]
type GetOrganizationAdminResponse() =
member val Labels:ResizeArray<OrganizationLabel> = null with get,set
member val Members:ResizeArray<OrganizationMember> = null with get,set
member val MemberInvites:ResizeArray<OrganizationMemberInvite> = null with get,set
member val ReportedPosts:ResizeArray<PostReportInfo> = null with get,set
member val ReportedPostComments:ResizeArray<PostCommentReportInfo> = null with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type GetOrganizationAdmin() =
interface IGet
member val Id:Int32 = new Int32() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /orgs/{Id}/admin HTTP/1.1 Host: techstacks.io Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"labels":[{"slug":"String","organizationId":0,"description":"String","color":"String"}],"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"}],"reportedPosts":[{"id":0,"organizationId":0,"postId":0,"userId":0,"userName":"String","flagType":"Violation","reportNotes":"String","created":"0001-01-01T00:00:00.0000000","acknowledged":"0001-01-01T00:00:00.0000000","acknowledgedBy":"String","dismissed":"0001-01-01T00:00:00.0000000","dismissedBy":"String","title":"String","reportCount":0,"createdBy":"String"}],"reportedPostComments":[{"id":0,"organizationId":0,"postId":0,"postCommentId":0,"userId":0,"userName":"String","flagType":"Violation","reportNotes":"String","created":"0001-01-01T00:00:00.0000000","acknowledged":"0001-01-01T00:00:00.0000000","acknowledgedBy":"String","dismissed":"0001-01-01T00:00:00.0000000","dismissedBy":"String","contentHtml":"String","reportCount":0,"createdBy":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}