search

Home  >  Q&A  >  body text

Using 2D array in swagger php api

I want to get a get request http://localhost/api/catalog/product/list?filters[filter14][]=0 But the result is just

How to create a two-dimensional array input in the swagger editor?

P粉757556355P粉757556355242 days ago495

reply all(1)I'll reply

  • P粉176980522

    P粉1769805222024-03-30 07:32:06

    OpenAPI 3.x Nested arrays and nested objects in query strings are not supported. You need to pass these filters in the request body (for example, as a JSON object or array), or replace the filters parameter with a separate named filter parameter.

    reply
    0
  • Cancelreply