| GET | /v4/link-affiliation-options |
|---|
namespace AffiliationAPI.ServiceModel.V4.Requests
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type LinkAffiliationOptionsResponse() =
member val Id:String = null with get,set
member val Type:String = null with get,set
member val LinkId:String = null with get,set
member val AffiliationDisabled:Nullable<Boolean> = new Nullable<Boolean>() with get,set
member val CreatedDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type GetLinkAffiliationOptionsResponse() =
member val Data:LinkAffiliationOptionsResponse = null with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type GetLinkAffiliationOptionsRequest() =
[<DataMember(Name="linkId", IsRequired=true)>]
member val LinkId:String = null with get,set
F# GetLinkAffiliationOptionsRequest 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.
GET /v4/link-affiliation-options HTTP/1.1 Host: affiliation-api-zane.dev.platform.georiot.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
data:
{
id: String,
type: link-affiliation-options,
linkId: String,
affiliationDisabled: False,
createdDate: 0001-01-01
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}