---
# System prepended metadata

title: Untitled

---

```http

GET /list?query=masło


{
    "nextPageToken": "AAAA",
    "products": [
        {
            "name": "AAA", 
            "code": "123",
            "company": {"name": "AAA"},
            "brand": {"name": "AAA"}
        },
        {
            "name": "AAA", 
            "code": "123",
            "company": {"name": "AAA"},
        }
    ],
    "totalItems": 12
}

GET /list??pageToken=AAAA

```

```json
{
   "$schema":"http://json-schema.org/draft-07/schema#",
   "type":"object",
   "properties":{
      "nextPageToken":{
         "type":"string"
      },
      "products":{
         "type":"array",
         "items":{
            "type":"object",
            "properties":{
               "name":{
                  "type":"string"
               },
               "code":{
                  "type":"string"
               },
               "company":{
                  "type":"object",
                  "properties":{
                     "name":{
                        "type":"string"
                     }
                  },
                  "required":[
                     "name"
                  ]
               },
               "brand":{
                  "type":"object",
                  "properties":{
                     "name":{
                        "type":"string"
                     }
                  },
                  "required":[
                     "name"
                  ]
               }
            },
            "required":[
               "name",
               "code"
            ]
         }
      },
      "totalItems":{
         "type":"integer"
      }
   },
   "required":[
      "nextPageToken",
      "products",
      "totalItems"
   ]
}
```