TechStacks!

<back to all web services

SessionInfo

User
Requires Authentication
The following routes are available for this service:
All Verbs/my-session
import java.math.*
import java.util.*
import net.servicestack.client.*


@ValidateRequest(Validator="IsAuthenticated")
open class SessionInfo : IGet
{
}

open class SessionInfoResponse
{
    var created:Date? = null
    var id:String? = null
    var referrerUrl:String? = null
    var userAuthId:String? = null
    var userAuthName:String? = null
    var userName:String? = null
    var displayName:String? = null
    var firstName:String? = null
    var lastName:String? = null
    var email:String? = null
    var createdAt:Date? = null
    var lastModified:Date? = null
    var roles:ArrayList<String> = ArrayList<String>()
    var permissions:ArrayList<String> = ArrayList<String>()
    var isAuthenticated:Boolean? = null
    var authProvider:String? = null
    var profileUrl:String? = null
    var githubProfileUrl:String? = null
    var twitterProfileUrl:String? = null
    var accessToken:String? = null
    var avatarUrl:String? = null
    var techStacks:ArrayList<TechnologyStack> = ArrayList<TechnologyStack>()
    var favoriteTechStacks:ArrayList<TechnologyStack> = ArrayList<TechnologyStack>()
    var favoriteTechnologies:ArrayList<Technology> = ArrayList<Technology>()
    var userActivity:UserActivity? = null
    var members:ArrayList<OrganizationMember> = ArrayList<OrganizationMember>()
    var memberInvites:ArrayList<OrganizationMemberInvite> = ArrayList<OrganizationMemberInvite>()
    var subscriptions:ArrayList<OrganizationSubscription> = ArrayList<OrganizationSubscription>()
    var responseStatus:ResponseStatus? = null
}

open class TechnologyStack : TechnologyStackBase()
{
    var id:Long? = null
    var name:String? = null
    var vendorName:String? = null
    var description:String? = null
    var appUrl:String? = null
    var screenshotUrl:String? = null
    var created:Date? = null
    var createdBy:String? = null
    var lastModified:Date? = null
    var lastModifiedBy:String? = null
    var isLocked:Boolean? = null
    var ownerId:String? = null
    var slug:String? = null
    @StringLength(2147483647)
    var details:String? = null

    @StringLength(2147483647)
    var detailsHtml:String? = null

    var lastStatusUpdate:Date? = null
    var organizationId:Int? = null
    var commentsPostId:Long? = null
    var viewCount:Int? = null
    var favCount:Int? = null
}

open class TechnologyStackBase
{
    var id:Long? = null
    var name:String? = null
    var vendorName:String? = null
    var description:String? = null
    var appUrl:String? = null
    var screenshotUrl:String? = null
    var created:Date? = null
    var createdBy:String? = null
    var lastModified:Date? = null
    var lastModifiedBy:String? = null
    var isLocked:Boolean? = null
    var ownerId:String? = null
    var slug:String? = null
    @StringLength(2147483647)
    var details:String? = null

    @StringLength(2147483647)
    var detailsHtml:String? = null

    var lastStatusUpdate:Date? = null
    var organizationId:Int? = null
    var commentsPostId:Long? = null
    var viewCount:Int? = null
    var favCount:Int? = null
}

open class Technology : TechnologyBase()
{
    var id:Long? = null
    var name:String? = null
    var vendorName:String? = null
    var vendorUrl:String? = null
    var productUrl:String? = null
    var logoUrl:String? = null
    var description:String? = null
    var created:Date? = null
    var createdBy:String? = null
    var lastModified:Date? = null
    var lastModifiedBy:String? = null
    var ownerId:String? = null
    var slug:String? = null
    var logoApproved:Boolean? = null
    var isLocked:Boolean? = null
    var tier:TechnologyTier? = null
    var lastStatusUpdate:Date? = null
    var organizationId:Int? = null
    var commentsPostId:Long? = null
    var viewCount:Int? = null
    var favCount:Int? = null
}

open class TechnologyBase
{
    var id:Long? = null
    var name:String? = null
    var vendorName:String? = null
    var vendorUrl:String? = null
    var productUrl:String? = null
    var logoUrl:String? = null
    var description:String? = null
    var created:Date? = null
    var createdBy:String? = null
    var lastModified:Date? = null
    var lastModifiedBy:String? = null
    var ownerId:String? = null
    var slug:String? = null
    var logoApproved:Boolean? = null
    var isLocked:Boolean? = null
    var tier:TechnologyTier? = null
    var lastStatusUpdate:Date? = null
    var organizationId:Int? = null
    var commentsPostId:Long? = null
    var viewCount:Int? = null
    var favCount:Int? = null
}

enum class TechnologyTier
{
    ProgrammingLanguage,
    Client,
    Http,
    Server,
    Data,
    SoftwareInfrastructure,
    OperatingSystem,
    HardwareInfrastructure,
    ThirdPartyServices,
}

open class UserActivity
{
    var id:Int? = null
    var userName:String? = null
    var karma:Int? = null
    var technologyCount:Int? = null
    var techStacksCount:Int? = null
    var postsCount:Int? = null
    var postUpVotes:Int? = null
    var postDownVotes:Int? = null
    var commentUpVotes:Int? = null
    var commentDownVotes:Int? = null
    var postCommentsCount:Int? = null
    var pinnedCommentCount:Int? = null
    var postReportCount:Int? = null
    var postCommentReportCount:Int? = null
    var created:Date? = null
    var modified:Date? = null
}

open class OrganizationMember
{
    var id:Int? = null
    var organizationId:Int? = null
    var userId:Int? = null
    var userName:String? = null
    var isOwner:Boolean? = null
    var isModerator:Boolean? = null
    var denyAll:Boolean? = null
    var denyPosts:Boolean? = null
    var denyComments:Boolean? = null
    var notes:String? = null
}

open class OrganizationMemberInvite
{
    var id:Int? = null
    var organizationId:Int? = null
    var userId:Int? = null
    var userName:String? = null
    var dismissed:Date? = null
}

open class OrganizationSubscription
{
    var id:Long? = null
    var organizationId:Int? = null
    var userId:Int? = null
    var userName:String? = null
    var postTypes:ArrayList<String>? = null
    var frequencyDays:Int? = null
    var lastSyncedId:Long? = null
    var lastSynced:Date? = null
    var created:Date? = null
}

Kotlin SessionInfo 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

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: application/json
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"}}}