POST | /freelicense/individual | ||
---|---|---|---|
POST | /CreateIndividualLicense |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class CreateIndividualLicense : IPost
{
open var licenseName:String? = null
open var agreeTerms:Boolean? = null
}
open class FreeLicenseResponse
{
open var licenseName:String? = null
open var licenseRef:String? = null
open var licenseKey:String? = null
open var licenseType:LicenseType? = null
open var createdDate:Date? = null
open var expiryDate:Date? = null
open var externalRef:String? = null
open var responseStatus:ResponseStatus? = null
}
enum class LicenseType
{
Free,
FreeIndividual,
FreeOpenSource,
Indie,
Business,
Enterprise,
TextIndie,
TextBusiness,
OrmLiteIndie,
OrmLiteBusiness,
RedisIndie,
RedisBusiness,
AwsIndie,
AwsBusiness,
Trial,
Site,
TextSite,
RedisSite,
OrmLiteSite,
}
Kotlin CreateIndividualLicense DTOs
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 /freelicense/individual HTTP/1.1
Host: account.servicestack.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
licenseName: String,
agreeTerms: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { licenseName: String, licenseRef: String, licenseKey: String, licenseType: Free, createdDate: 0001-01-01, expiryDate: 0001-01-01, externalRef: String, responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } } }