| GET | /v4/link-affiliation-options |
|---|
import Foundation
import ServiceStack
// @DataContract
public class GetLinkAffiliationOptionsRequest : IGetLinkAffiliationOptionsRequest, Codable
{
// @DataMember(Name="linkId", IsRequired=true)
public var linkId:String
required public init(){}
}
public class GetLinkAffiliationOptionsResponse : IGetLinkAffiliationOptionsResponse, Codable
{
public var data:LinkAffiliationOptionsResponse
public var responseStatus:ResponseStatus
required public init(){}
}
public class LinkAffiliationOptionsResponse : ILinkAffiliationOptionsResponse, Codable
{
public var id:String
public var type:String
public var linkId:String
public var affiliationDisabled:Bool?
public var createdDate:Date?
required public init(){}
}
Swift GetLinkAffiliationOptionsRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v4/link-affiliation-options HTTP/1.1 Host: affiliation-api-zane.dev.platform.georiot.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"data":{"id":"String","type":"link-affiliation-options","linkId":"String","affiliationDisabled":false,"createdDate":"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"}}}