ServiceStack Home (Live)

<back to all web services

GetFreeLicense

The following routes are available for this service:
GET/freelicense/{Ref}
GET/GetFreeLicense
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports MyApp.ServiceInterface

Namespace Global

    Namespace MyApp.ServiceInterface

        Public Partial Class FreeLicenseResponse
            Public Overridable Property LicenseName As String
            Public Overridable Property LicenseRef As String
            Public Overridable Property LicenseKey As String
            Public Overridable Property LicenseType As LicenseType?
            Public Overridable Property CreatedDate As Date?
            Public Overridable Property ExpiryDate As Date?
            Public Overridable Property ExternalRef As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class GetFreeLicense
            Implements IGet
            Public Overridable Property Ref As String
        End Class
    End Namespace

    Namespace ServiceStack

        Public Enum LicenseType
            Free
            FreeIndividual
            FreeOpenSource
            Indie
            Business
            Enterprise
            TextIndie
            TextBusiness
            OrmLiteIndie
            OrmLiteBusiness
            RedisIndie
            RedisBusiness
            AwsIndie
            AwsBusiness
            Trial
            Site
            TextSite
            RedisSite
            OrmLiteSite
        End Enum
    End Namespace
End Namespace

VB.NET GetFreeLicense DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /freelicense/{Ref} HTTP/1.1 
Host: account.servicestack.net 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"licenseName":"String","licenseRef":"String","licenseKey":"String","licenseType":"Free","createdDate":"\/Date(-62135596800000-0000)\/","expiryDate":"\/Date(-62135596800000-0000)\/","externalRef":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}