All Verbs | /my-session |
---|
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 TechnologyStackBase() =
member val Id:Int64 = new Int64() with get,set
member val Name:String = null with get,set
member val VendorName:String = null with get,set
member val Description:String = null with get,set
member val AppUrl:String = null with get,set
member val ScreenshotUrl:String = null with get,set
member val Created:DateTime = new DateTime() with get,set
member val CreatedBy:String = null with get,set
member val LastModified:DateTime = new DateTime() with get,set
member val LastModifiedBy:String = null with get,set
member val IsLocked:Boolean = new Boolean() with get,set
member val OwnerId:String = null with get,set
member val Slug:String = null with get,set
[<StringLength(Int32.MaxValue)>]
member val Details:String = null with get,set
[<StringLength(Int32.MaxValue)>]
member val DetailsHtml:String = null with get,set
member val LastStatusUpdate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val OrganizationId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val CommentsPostId:Nullable<Int64> = new Nullable<Int64>() with get,set
member val ViewCount:Int32 = new Int32() with get,set
member val FavCount:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type TechnologyStack() =
inherit TechnologyStackBase()
type TechnologyTier =
| ProgrammingLanguage = 0
| Client = 1
| Http = 2
| Server = 3
| Data = 4
| SoftwareInfrastructure = 5
| OperatingSystem = 6
| HardwareInfrastructure = 7
| ThirdPartyServices = 8
[<AllowNullLiteral>]
type TechnologyBase() =
member val Id:Int64 = new Int64() with get,set
member val Name:String = null with get,set
member val VendorName:String = null with get,set
member val VendorUrl:String = null with get,set
member val ProductUrl:String = null with get,set
member val LogoUrl:String = null with get,set
member val Description:String = null with get,set
member val Created:DateTime = new DateTime() with get,set
member val CreatedBy:String = null with get,set
member val LastModified:DateTime = new DateTime() with get,set
member val LastModifiedBy:String = null with get,set
member val OwnerId:String = null with get,set
member val Slug:String = null with get,set
member val LogoApproved:Boolean = new Boolean() with get,set
member val IsLocked:Boolean = new Boolean() with get,set
member val Tier:TechnologyTier = new TechnologyTier() with get,set
member val LastStatusUpdate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val OrganizationId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val CommentsPostId:Nullable<Int64> = new Nullable<Int64>() with get,set
member val ViewCount:Int32 = new Int32() with get,set
member val FavCount:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type Technology() =
inherit TechnologyBase()
[<AllowNullLiteral>]
type UserActivity() =
member val Id:Int32 = new Int32() with get,set
member val UserName:String = null with get,set
member val Karma:Int32 = new Int32() with get,set
member val TechnologyCount:Int32 = new Int32() with get,set
member val TechStacksCount:Int32 = new Int32() with get,set
member val PostsCount:Int32 = new Int32() with get,set
member val PostUpVotes:Int32 = new Int32() with get,set
member val PostDownVotes:Int32 = new Int32() with get,set
member val CommentUpVotes:Int32 = new Int32() with get,set
member val CommentDownVotes:Int32 = new Int32() with get,set
member val PostCommentsCount:Int32 = new Int32() with get,set
member val PinnedCommentCount:Int32 = new Int32() with get,set
member val PostReportCount:Int32 = new Int32() with get,set
member val PostCommentReportCount:Int32 = new Int32() with get,set
member val Created:DateTime = new DateTime() with get,set
member val Modified:DateTime = new DateTime() 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
[<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 SessionInfoResponse() =
member val Created:DateTime = new DateTime() with get,set
member val Id:String = null with get,set
member val ReferrerUrl:String = null with get,set
member val UserAuthId:String = null with get,set
member val UserAuthName:String = null with get,set
member val UserName:String = null with get,set
member val DisplayName:String = null with get,set
member val FirstName:String = null with get,set
member val LastName:String = null with get,set
member val Email:String = null with get,set
member val CreatedAt:DateTime = new DateTime() with get,set
member val LastModified:DateTime = new DateTime() with get,set
member val Roles:ResizeArray<String> = null with get,set
member val Permissions:ResizeArray<String> = null with get,set
member val IsAuthenticated:Boolean = new Boolean() with get,set
member val AuthProvider:String = null with get,set
member val ProfileUrl:String = null with get,set
member val GithubProfileUrl:String = null with get,set
member val TwitterProfileUrl:String = null with get,set
member val AccessToken:String = null with get,set
member val AvatarUrl:String = null with get,set
member val TechStacks:ResizeArray<TechnologyStack> = null with get,set
member val FavoriteTechStacks:ResizeArray<TechnologyStack> = null with get,set
member val FavoriteTechnologies:ResizeArray<Technology> = null with get,set
member val UserActivity:UserActivity = null with get,set
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
member val ResponseStatus:ResponseStatus = null with get,set
[<ValidateRequest(Validator="IsAuthenticated")>]
[<AllowNullLiteral>]
type SessionInfo() =
interface IGet
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /my-session HTTP/1.1
Host: techstacks.io
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"created":"0001-01-01T00:00:00.0000000","id":"String","referrerUrl":"String","userAuthId":"String","userAuthName":"String","userName":"String","displayName":"String","firstName":"String","lastName":"String","email":"String","createdAt":"0001-01-01T00:00:00.0000000","lastModified":"0001-01-01T00:00:00.0000000","roles":["String"],"permissions":["String"],"isAuthenticated":false,"authProvider":"String","profileUrl":"String","githubProfileUrl":"String","twitterProfileUrl":"String","accessToken":"String","avatarUrl":"String","techStacks":[{"id":0,"name":"String","vendorName":"String","description":"String","appUrl":"String","screenshotUrl":"String","created":"0001-01-01T00:00:00.0000000","createdBy":"String","lastModified":"0001-01-01T00:00:00.0000000","lastModifiedBy":"String","isLocked":false,"ownerId":"String","slug":"String","details":"String","detailsHtml":"String","lastStatusUpdate":"0001-01-01T00:00:00.0000000","organizationId":0,"commentsPostId":0,"viewCount":0,"favCount":0}],"favoriteTechStacks":[{"id":0,"name":"String","vendorName":"String","description":"String","appUrl":"String","screenshotUrl":"String","created":"0001-01-01T00:00:00.0000000","createdBy":"String","lastModified":"0001-01-01T00:00:00.0000000","lastModifiedBy":"String","isLocked":false,"ownerId":"String","slug":"String","details":"String","detailsHtml":"String","lastStatusUpdate":"0001-01-01T00:00:00.0000000","organizationId":0,"commentsPostId":0,"viewCount":0,"favCount":0}],"favoriteTechnologies":[{"id":0,"name":"String","vendorName":"String","vendorUrl":"String","productUrl":"String","logoUrl":"String","description":"String","created":"0001-01-01T00:00:00.0000000","createdBy":"String","lastModified":"0001-01-01T00:00:00.0000000","lastModifiedBy":"String","ownerId":"String","slug":"String","logoApproved":false,"isLocked":false,"tier":"ProgrammingLanguage","lastStatusUpdate":"0001-01-01T00:00:00.0000000","organizationId":0,"commentsPostId":0,"viewCount":0,"favCount":0}],"userActivity":{"id":0,"userName":"String","karma":0,"technologyCount":0,"techStacksCount":0,"postsCount":0,"postUpVotes":0,"postDownVotes":0,"commentUpVotes":0,"commentDownVotes":0,"postCommentsCount":0,"pinnedCommentCount":0,"postReportCount":0,"postCommentReportCount":0,"created":"0001-01-01T00:00:00.0000000","modified":"0001-01-01T00:00:00.0000000"},"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"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}