All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
getByProductIds | GET /api/search/product | Provided product search functionality |
open class func getByProductIds(collection: String, productId: String, xGroupbyCustomerId: String, variantIds: [String]? = nil, completion: @escaping (_ data: ProductDto?, _ error: Error?) -> Void)
Provided product search functionality
Perform a product search against the GroupBy Retail Search API.
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import GroupByRetailClient
let collection = "collection_example" // String | Collection name
let productId = "productId_example" // String | Product ID which need to be search
let xGroupbyCustomerId = "xGroupbyCustomerId_example" // String | Required. This parameter will extract from header X-Groupby-Customer-Id. May contain tenant name. Used to define a client by its name.
let variantIds = ["inner_example"] // [String] | Not required. If the product has variant list and the request specifies the variantIds, requested variants will be the first in the response. (optional)
// Provided product search functionality
ProductAPI.getByProductIds(collection: collection, productId: productId, xGroupbyCustomerId: xGroupbyCustomerId, variantIds: variantIds) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
collection | String | Collection name | |
productId | String | Product ID which need to be search | |
xGroupbyCustomerId | String | Required. This parameter will extract from header X-Groupby-Customer-Id. May contain tenant name. Used to define a client by its name. | |
variantIds | [String] | Not required. If the product has variant list and the request specifies the variantIds, requested variants will be the first in the response. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]