| GET | /v4/short-links |
|---|
namespace Geniuslink.Shortlinks
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type RefreshableMetadata() =
member val CreatedDate:DateTime = new DateTime() with get,set
member val UpdatedDate:DateTime = new DateTime() with get,set
[<AllowNullLiteral>]
type ShortLink() =
member val BaseCode:String = null with get,set
member val Domain:String = null with get,set
member val Username:String = null with get,set
member val AffiliateTokensSet:Nullable<Guid> = new Nullable<Guid>() with get,set
member val Metadata:RefreshableMetadata = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetAffiliateTokenSetResponse() =
[<DataMember>]
member val Result:ShortLink = null with get,set
[<DataMember>]
member val ResponseStatus:ResponseStatus = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetAffiliateTokenSetRequest() =
[<DataMember(Name="baseCode")>]
member val BaseCode:String = null with get,set
F# GetAffiliateTokenSetRequest DTOs
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.
GET /v4/short-links HTTP/1.1 Host: shortlinks-api.qa.platform.georiot.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"result":{"baseCode":"String","domain":"String","username":"String","affiliateTokensSet":"00000000000000000000000000000000","metadata":{"createdDate":"0001-01-01T00:00:00.0000000","updatedDate":"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"}}}