All Verbs | /my-session |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
@ValidateRequest(Validator="IsAuthenticated")
open class SessionInfo : IGet
{
}
open class SessionInfoResponse
{
open var created:Date? = null
open var id:String? = null
open var referrerUrl:String? = null
open var userAuthId:String? = null
open var userAuthName:String? = null
open var userName:String? = null
open var displayName:String? = null
open var firstName:String? = null
open var lastName:String? = null
open var email:String? = null
open var createdAt:Date? = null
open var lastModified:Date? = null
open var roles:ArrayList<String>? = null
open var permissions:ArrayList<String>? = null
open var isAuthenticated:Boolean? = null
open var authProvider:String? = null
open var profileUrl:String? = null
open var githubProfileUrl:String? = null
open var twitterProfileUrl:String? = null
open var accessToken:String? = null
open var avatarUrl:String? = null
open var techStacks:ArrayList<TechnologyStack>? = null
open var favoriteTechStacks:ArrayList<TechnologyStack>? = null
open var favoriteTechnologies:ArrayList<Technology>? = null
open var userActivity:UserActivity? = null
open var members:ArrayList<OrganizationMember>? = null
open var memberInvites:ArrayList<OrganizationMemberInvite>? = null
open var subscriptions:ArrayList<OrganizationSubscription>? = null
open var responseStatus:ResponseStatus? = null
}
open class TechnologyStack : TechnologyStackBase()
{
}
open class TechnologyStackBase
{
open var id:Long? = null
open var name:String? = null
open var vendorName:String? = null
open var description:String? = null
open var appUrl:String? = null
open var screenshotUrl:String? = null
open var created:Date? = null
open var createdBy:String? = null
open var lastModified:Date? = null
open var lastModifiedBy:String? = null
open var isLocked:Boolean? = null
open var ownerId:String? = null
open var slug:String? = null
@StringLength(MaximumLength=2147483647)
open var details:String? = null
@StringLength(MaximumLength=2147483647)
open var detailsHtml:String? = null
open var lastStatusUpdate:Date? = null
open var organizationId:Int? = null
open var commentsPostId:Long? = null
open var viewCount:Int? = null
open var favCount:Int? = null
}
open class Technology : TechnologyBase()
{
}
open class TechnologyBase
{
open var id:Long? = null
open var name:String? = null
open var vendorName:String? = null
open var vendorUrl:String? = null
open var productUrl:String? = null
open var logoUrl:String? = null
open var description:String? = null
open var created:Date? = null
open var createdBy:String? = null
open var lastModified:Date? = null
open var lastModifiedBy:String? = null
open var ownerId:String? = null
open var slug:String? = null
open var logoApproved:Boolean? = null
open var isLocked:Boolean? = null
open var tier:TechnologyTier? = null
open var lastStatusUpdate:Date? = null
open var organizationId:Int? = null
open var commentsPostId:Long? = null
open var viewCount:Int? = null
open var favCount:Int? = null
}
enum class TechnologyTier
{
ProgrammingLanguage,
Client,
Http,
Server,
Data,
SoftwareInfrastructure,
OperatingSystem,
HardwareInfrastructure,
ThirdPartyServices,
}
open class UserActivity
{
open var id:Int? = null
open var userName:String? = null
open var karma:Int? = null
open var technologyCount:Int? = null
open var techStacksCount:Int? = null
open var postsCount:Int? = null
open var postUpVotes:Int? = null
open var postDownVotes:Int? = null
open var commentUpVotes:Int? = null
open var commentDownVotes:Int? = null
open var postCommentsCount:Int? = null
open var pinnedCommentCount:Int? = null
open var postReportCount:Int? = null
open var postCommentReportCount:Int? = null
open var created:Date? = null
open var modified:Date? = null
}
open class OrganizationMember
{
open var id:Int? = null
open var organizationId:Int? = null
open var userId:Int? = null
open var userName:String? = null
open var isOwner:Boolean? = null
open var isModerator:Boolean? = null
open var denyAll:Boolean? = null
open var denyPosts:Boolean? = null
open var denyComments:Boolean? = null
open var notes:String? = null
}
open class OrganizationMemberInvite
{
open var id:Int? = null
open var organizationId:Int? = null
open var userId:Int? = null
open var userName:String? = null
open var dismissed:Date? = null
}
open class OrganizationSubscription
{
open var id:Long? = null
open var organizationId:Int? = null
open var userId:Int? = null
open var userName:String? = null
open var postTypes:ArrayList<String>? = null
open var frequencyDays:Int? = null
open var lastSyncedId:Long? = null
open var lastSynced:Date? = null
open var created:Date? = null
}
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"}}}