allegro / allegro/allegro-api

[NEWS] W informacjach o produktach dodaliśmy ścieżki kategorii / We have added category paths to product information

Open
#8,301 0 comments 0 reactions 1 assignee Claimed by @Lukasz-Zurek View on GitHub
News
Dominant language
No language data
Stars
244
Forks
40
PR merge metrics
No merged PRs in 30d

Description

W informacjach o produktach dodaliśmy dzisiaj ścieżki kategorii.

**Jakie zmiany wprowadziliśmy?**

Dla:

- [GET /sale/products](https://developer.allegro.pl/documentation#operation/getSaleProducts),
- [GET /sale/products/{productId}](https://developer.allegro.pl/documentation#operation/getSaleProduct),

dodaliśmy nowe obiekty:

- **category.path** - tablica ze ścieżką kategorii głównej, wskazanej w **“category.id”**,
- **category.similar.path** - tablica ze ścieżką kategorii podobnej, wskazanej w **“category.similar.id”**.

**Przykładowy response:**

```
{
"id": "f6cb19c6-c71d-4c02-93b2-0cb4c91b3e6b",
"name": "Orzechy włoskie",
"category": {
"id": "261230",
"path": [ - ścieżka kategorii głównej wskazanej
w “category.id”
{
"id": "954b95b6-43cf-4104-8354-dea4d9b10ddf",

"name": "Allegro"
},
{
"id": "258832",
"name": "Supermarket"
},
{
"id": "73973",
"name": "Produkty spożywcze"
},
{
"id": "112640",
"name": "Bakalie, orzechy, pestki"
},
{
"id": "261230",
"name": "Orzechy"
}
],
"similar": [
{
"id": "251902",
"path": [ - ścieżka kategorii podobnej wskazanej
w “category.similar.id”
{
"id": "954b95b6-43cf-4104-8354-dea4d9b10ddf",

"name": "Allegro"

},
{
"id": "258832",
"name": "Supermarket"
},
{
"id": "73973",
"name": "Produkty spożywcze"
},
{
"id": "251902",
"name": "Zestawy prezentowe"
}
]
},
{
"id": "112645",
"path": [
{
"id": "954b95b6-43cf-4104-8354-dea4d9b10ddf",
"name": "Allegro"
},
{
"id": "258832",
"name": "Supermarket"
},
{
"id": "73973",
"name": "Produkty spożywcze"
},
{
"id": "112640",
"name": "Bakalie, orzechy, pestki"
},
{
"id": "112645",
"name": "Nasiona, ziarna, pestki"
}
]
},

```
Więcej informacji na temat wyszukiwania informacji o produktach znajdziesz w [naszym poradniku](https://developer.allegro.pl/tutorials/jak-jednym-requestem-wystawic-oferte-powiazana-z-produktem-D7Kj9gw4xFA#katalog-produktow).

---------

Today we added category paths to product information.

**What changes have we made?**

For:

- [GET /sale/products](https://developer.allegro.pl/documentation#operation/getSaleProducts),
- [GET /sale/products/{productId}](https://developer.allegro.pl/documentation#operation/getSaleProduct),

we added new objects:

- **category.path** - table with the path of the main category indicated in the “category.id” field,
- **category.similar.path** - table with the path of the similar category indicated in the “category.similar.id” field.

**Sample response:**

```
{
"id": "f6cb19c6-c71d-4c02-93b2-0cb4c91b3e6b",
"name": "Italian nuts",
"category": {
"id": "261230",
"path": [ - table with the path of the main
category indicated in
the “category.id” field
{
"id": "954b95b6-43cf-4104-8354-dea4d9b10ddf",

"name": "Allegro"
},
{
"id": "258832",
"name": "Supermarket"
},
{
"id": "73973",
"name": "Groceries"
},
{
"id": "112640",
"name": "Dried fruit, Nuts, Seeds"
},
{
"id": "261230",
"name": "Nuts"
}
],
"similar": [
{
"id": "251902",
"path": [ - table with the path of the similar
category indicated in
the “category.similar.id” field
{
"id": "954b95b6-43cf-4104-8354-dea4d9b10ddf",

"name": "Allegro"

},
{
"id": "258832",
"name": "Supermarket"
},
{
"id": "73973",
"name": "Groceries"
},
{
"id": "251902",
"name": "Gift Sets"
}
]
},
{
"id": "112645",
"path": [
{
"id": "954b95b6-43cf-4104-8354-dea4d9b10ddf",
"name": "Allegro"
},
{
"id": "258832",
"name": "Supermarket"
},
{
"id": "73973",
"name": "Groceries"
},
{
"id": "112640",
"name": "Dried fruit, Nuts, Seeds"
},
{
"id": "112645",
"name": "Seeds and Grains"
}
]
},

```

You will find more information about products searching in [our guide](https://developer.allegro.pl/tutorials/list-offer-assigned-product-one-request-D7Kj9M71Bu6#product-catalog).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.