Forum Discussion

Dzmitry's avatar
Dzmitry
New Member
4 years ago
Solved

Swagger creating the query parameters: products[i][sku]

Hello!

Somebody knows how to create the filed: products[i][sku] in swagger. I have example but it does not works. It must be like the example: /v1/api/getShippingPrices?products[i][sku]=&products[i][quantity]=> 

now I have this:

 

/getShippingPrices:
get:
tags:
- countries_shipping
summary: searches inventory
operationId: getShippingPrices
description: Feature that enables you to cancel a previously placed order, as long as it is yet to be processed
parameters:
- in: query
name: address
required: true
schema:
type: array
items:
$ref: '#/components/schemas/Address'
- in: query
name: products2
required: true
schema:
type: array
items:
$ref: '#/components/schemas/Products'

 

but it returned the URL: 

 

https://apidev.btswholesaler.com/v1/api/getShippingPrices?address={
"country_code": "HR",
"postal_code": "20100"
}&products={
"sku": "4005808801039",
"quantity": 4
}

it is not like the example above.