allegro / allegro/allegro-api

[NEWS] Zasoby /sale/user-ratings - dodaliśmy nowy parametr i zmieniliśmy domyślne sortowanie oraz format daty / We added a new parameter and changed the default sort and date format in the /sale/user-ratings resources

Aberta
#6,150 0 comentários 0 reações 1 responsável Reivindicada por @Lukasz-Zurek Ver no GitHub
News
Linguagem predominante
Sem dados de linguagem
Estrelas
244
Forks
40
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Zgodnie z [wcześniejszą zapowiedzią](https://developer.allegro.pl/news/get-sale-user-ratings-dodalismy-nowe-pola-MRBeEVG4ZuG) wprowadziliśmy kilka usprawnień na zasobach odpowiedzialnych za oceny sprzedaży.

**Co zmieniliśmy?**

Dla [GET /sale/user-ratings](https://developer.allegro.pl/documentation/#operation/getUserRatingsUsingGET):

- dodaliśmy nowy opcjonalny parametr do filtrowania według **lastChangedAt**,
- zmieniliśmy domyślne sortowanie z **createdAt** na **lastChangedAt** - dzięki temu domyślnie jako pierwsze zwracamy ostatnio dodane lub zmienione oceny.

Ponadto zmieniliśmy format daty na UTC, np. "2022-07-08T09:45:43.818Z" dla:

- [GET /sale/user-ratings](https://developer.allegro.pl/documentation/#operation/getUserRatingsUsingGET) - w zwracanych polach **createdAt**, **removal.possibleTo**, **answer.createdAt** i **removal.request.createdAt**,
- [PUT /sale/user-ratings/{ratingId}/answer](https://developer.allegro.pl/documentation/#operation/answerUserRatingUsingPUT) - w zwracanym polu **createdAt**,
- [PUT /sale/user-ratings/{ratingId}/removal](https://developer.allegro.pl/documentation/#operation/userRatingRemovalUsingPUT) - w zwracanych polach **request.createdAt** i **possibleTo**.

Więcej informacji na temat oceny sprzedaży znajdziesz w [poradniku](https://developer.allegro.pl/tutorials/jak-zarzadzac-kontem-danymi-uzytkownika-ZM9YAKgPgi2#jak-pobrac-informacje-o-ocenie-sprzedazy).

------

According to [our announcement](https://developer.allegro.pl/news/get-sale-user-ratings-dodalismy-nowe-pola-MRBeEVG4ZuG), we have made some improvements to the user ratings resources.

**What have we changed?**

For [GET /sale/user-ratings](https://developer.allegro.pl/documentation/#operation/getUserRatingsUsingGET):

- we have added a new optional parameter to filter by **lastChangedAt**,
- we have changed the default sorting from **createdAt** to **lastChangedAt** - thanks to this, we will return the most recently added or changed ratings first, by default.

In addition we have changed the date format to UTC, e.g. "2022-07-08T09:45:43.818Z" for:

- [GET /sale/user-ratings](https://developer.allegro.pl/documentation/#operation/getUserRatingsUsingGET) - in the returned **createdAt**, **removal.possibleTo**, **answer.createdAt** i **removal.request.createdAt** fields,
- [PUT /sale/user-ratings/{ratingId}/answer](https://developer.allegro.pl/documentation/#operation/answerUserRatingUsingPUT) - in the returned **createdAt** field,
- [PUT /sale/user-ratings/{ratingId}/removal](https://developer.allegro.pl/documentation/#operation/userRatingRemovalUsingPUT) - in the returned **request.createdAt** and **possibleTo** fields.

You will find more information about user ratings in [our guide](https://developer.allegro.pl/tutorials/jak-zarzadzac-kontem-danymi-uzytkownika-ZM9YAKgPgi2#jak-pobrac-informacje-o-ocenie-sprzedazy).

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.