| GET | /v3.5/product-metadata/lookup |
|---|
namespace Geniuslink.Products.QueuedService.Contracts.V1.DTOs
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<DataContract>]
[<AllowNullLiteral>]
type ProductIdentifiers() =
[<DataMember(Name="productGuid", EmitDefaultValue=false)>]
member val ProductGuid:Guid = new Guid() with get,set
[<DataMember(Name="gtins", EmitDefaultValue=false)>]
member val Gtins:ResizeArray<String> = null with get,set
[<DataMember(Name="mpns", EmitDefaultValue=false)>]
member val Mpns:ResizeArray<String> = null with get,set
[<DataMember(Name="ean8", EmitDefaultValue=false)>]
member val Ean8:ResizeArray<String> = null with get,set
[<DataMember(Name="ean13", EmitDefaultValue=false)>]
member val Ean13:ResizeArray<String> = null with get,set
[<DataMember(Name="isbn9", EmitDefaultValue=false)>]
member val Isbn9:ResizeArray<String> = null with get,set
[<DataMember(Name="isbn10", EmitDefaultValue=false)>]
member val Isbn10:ResizeArray<String> = null with get,set
[<DataMember(Name="isbn13", EmitDefaultValue=false)>]
member val Isbn13:ResizeArray<String> = null with get,set
[<DataMember(Name="itf14", EmitDefaultValue=false)>]
member val ITF14:ResizeArray<String> = null with get,set
[<DataMember(Name="upc12", EmitDefaultValue=false)>]
member val Upc12:ResizeArray<String> = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type BookAttributes() =
[<DataMember(Name="authors", EmitDefaultValue=false)>]
member val Authors:ResizeArray<String> = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type AudiobookAttributes() =
inherit BookAttributes()
[<DataContract>]
[<AllowNullLiteral>]
type EBookAttributes() =
inherit BookAttributes()
[<DataContract>]
[<AllowNullLiteral>]
type ItemAttributes() =
[<DataMember(Name="book", EmitDefaultValue=false)>]
member val Book:BookAttributes = null with get,set
[<DataMember(Name="audiobook", EmitDefaultValue=false)>]
member val Audiobook:AudiobookAttributes = null with get,set
[<DataMember(Name="ebook", EmitDefaultValue=false)>]
member val EBook:EBookAttributes = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type ProductAttributes() =
[<DataMember(Name="retailer", EmitDefaultValue=false)>]
member val Retailer:String = null with get,set
[<DataMember(Name="retailerGuid", EmitDefaultValue=false)>]
member val RetailerGuid:Guid = new Guid() with get,set
[<DataMember(Name="storefront", EmitDefaultValue=false)>]
member val Storefront:String = null with get,set
[<DataMember(Name="storefrontIso2", EmitDefaultValue=false)>]
member val StorefrontIso2:String = null with get,set
[<DataMember(Name="storefrontGuid", EmitDefaultValue=false)>]
member val StorefrontGuid:Guid = new Guid() with get,set
[<DataMember(Name="category", EmitDefaultValue=false)>]
member val Category:String = null with get,set
[<DataMember(Name="categoryGuid", EmitDefaultValue=false)>]
member val CategoryGuid:Guid = new Guid() with get,set
[<DataMember(Name="brand", EmitDefaultValue=false)>]
member val Brand:String = null with get,set
[<DataMember(Name="brandGuid", EmitDefaultValue=false)>]
member val BrandGuid:Guid = new Guid() with get,set
[<DataMember(Name="manufacturer", EmitDefaultValue=false)>]
member val Manufacturer:String = null with get,set
[<DataMember(Name="manufacturerGuid", EmitDefaultValue=false)>]
member val ManufacturerGuid:Guid = new Guid() with get,set
[<DataMember(Name="identifiers", EmitDefaultValue=false)>]
member val Identifiers:ProductIdentifiers = null with get,set
[<DataMember(Name="itemAttributes", EmitDefaultValue=false)>]
member val ItemAttributes:ItemAttributes = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type RetailerSpecificAttributes() =
[<DataMember(Name="name", EmitDefaultValue=false)>]
member val Name:String = null with get,set
[<DataMember(Name="description", EmitDefaultValue=false)>]
member val Description:String = null with get,set
[<DataMember(Name="skus", EmitDefaultValue=false)>]
member val Skus:ResizeArray<String> = null with get,set
[<DataMember(Name="asin", EmitDefaultValue=false)>]
member val Asin:String = null with get,set
[<DataMember(Name="url", EmitDefaultValue=false)>]
member val Url:Uri = null with get,set
[<DataMember(Name="productImages", EmitDefaultValue=false)>]
member val ProductImages:Dictionary<String, Uri> = null with get,set
[<DataMember(Name="additionalData", EmitDefaultValue=false)>]
member val AdditionalData:Dictionary<String, String> = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type ProductData() =
[<DataMember(Name="attributes", EmitDefaultValue=false)>]
member val Attributes:ProductAttributes = null with get,set
[<DataMember(Name="retailerSpecificAttributes", EmitDefaultValue=false)>]
member val RetailerSpecificAttributes:RetailerSpecificAttributes = null with get,set
[<DataMember(Name="rawSourceData", EmitDefaultValue=false)>]
member val RawSourceData:String = null with get,set
[<AllowNullLiteral>]
type ProductMetadataLookupResponse() =
[<DataMember(Name="productMetadata")>]
member val ProductMetadata:ProductData = null with get,set
[<DataMember(Name="responseStatus")>]
member val ResponseStatus:ResponseStatus = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type ProductMetadataLookupRequest() =
[<DataMember(Name="url")>]
member val Url:String = null with get,set
F# ProductMetadataLookupRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v3.5/product-metadata/lookup HTTP/1.1 Host: geniuslink-api-zane.dev.platform.georiot.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProductMetadataLookupResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GeniuslinkAPI.ServiceModel.V4.Products.Responses">
<ProductMetadata xmlns:d2p1="http://schemas.datacontract.org/2004/07/Geniuslink.Products.QueuedService.Contracts.V1.DTOs">
<d2p1:attributes>
<d2p1:brand>String</d2p1:brand>
<d2p1:category>String</d2p1:category>
<d2p1:identifiers>
<d2p1:ean13 xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:ean13>
<d2p1:ean8 xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:ean8>
<d2p1:gtins xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:gtins>
<d2p1:isbn10 xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:isbn10>
<d2p1:isbn13 xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:isbn13>
<d2p1:isbn9 xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:isbn9>
<d2p1:itf14 xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:itf14>
<d2p1:mpns xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:mpns>
<d2p1:upc12 xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:string>String</d5p1:string>
</d2p1:upc12>
</d2p1:identifiers>
<d2p1:itemAttributes>
<d2p1:audiobook>
<d2p1:authors xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</d2p1:authors>
</d2p1:audiobook>
<d2p1:book>
<d2p1:authors xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</d2p1:authors>
</d2p1:book>
<d2p1:ebook>
<d2p1:authors xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</d2p1:authors>
</d2p1:ebook>
</d2p1:itemAttributes>
<d2p1:manufacturer>String</d2p1:manufacturer>
<d2p1:retailer>String</d2p1:retailer>
<d2p1:storefront>String</d2p1:storefront>
<d2p1:storefrontIso2>String</d2p1:storefrontIso2>
</d2p1:attributes>
<d2p1:rawSourceData>String</d2p1:rawSourceData>
<d2p1:retailerSpecificAttributes>
<d2p1:additionalData xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</d2p1:additionalData>
<d2p1:asin>String</d2p1:asin>
<d2p1:description>String</d2p1:description>
<d2p1:name>String</d2p1:name>
<d2p1:productImages xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringanyURI>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value i:nil="true" />
</d4p1:KeyValueOfstringanyURI>
</d2p1:productImages>
<d2p1:skus xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d2p1:skus>
</d2p1:retailerSpecificAttributes>
</ProductMetadata>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</ProductMetadataLookupResponse>