All Verbs | /userinfo/{Id} |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class GetUserInfo : IGet
{
open var id:Int? = null
open var userName:String? = null
}
open class GetUserInfoResponse
{
open var id:Int? = null
open var userName:String? = null
open var created:Date? = 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 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
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /userinfo/{Id} HTTP/1.1
Host: techstacks.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
userName: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { id: 0, userName: String, created: 0001-01-01, avatarUrl: String, techStacks: [ { id: 0, name: String, vendorName: String, description: String, appUrl: String, screenshotUrl: String, created: 0001-01-01, createdBy: String, lastModified: 0001-01-01, lastModifiedBy: String, isLocked: False, ownerId: String, slug: String, details: String, detailsHtml: String, lastStatusUpdate: 0001-01-01, organizationId: 0, commentsPostId: 0, viewCount: 0, favCount: 0 } ], favoriteTechStacks: [ { id: 0, name: String, vendorName: String, description: String, appUrl: String, screenshotUrl: String, created: 0001-01-01, createdBy: String, lastModified: 0001-01-01, lastModifiedBy: String, isLocked: False, ownerId: String, slug: String, details: String, detailsHtml: String, lastStatusUpdate: 0001-01-01, 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-01, createdBy: String, lastModified: 0001-01-01, lastModifiedBy: String, ownerId: String, slug: String, logoApproved: False, isLocked: False, tier: ProgrammingLanguage, lastStatusUpdate: 0001-01-01, 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-01, modified: 0001-01-01 }, responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } } }