| POST | /v2/images |
|---|
namespace Booklinker.API.ServiceModel.V2.Requests
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<DataContract>]
[<AllowNullLiteral>]
type V2BaseResponse() =
[<DataMember(Name="responseStatus")>]
member val ResponseStatus:ResponseStatus = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type PostImageResponse() =
inherit V2BaseResponse()
[<DataContract>]
[<AllowNullLiteral>]
type V2BaseRequest() =
class end
[<DataContract>]
[<AllowNullLiteral>]
type PostImageRequest() =
inherit V2BaseRequest()
[<DataMember(Name="provider")>]
member val Provider:String = null with get,set
[<DataMember(Name="providerImageId")>]
member val ProviderImageId:String = null with get,set
[<DataMember(Name="attributes")>]
member val Attributes:Dictionary<String, String> = null with get,set
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.
POST /v2/images HTTP/1.1
Host: api.booklinker.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"provider":"String","providerImageId":"String","attributes":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}