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

Abierto
#6,150 0 comentarios 0 reacciones 1 asignado Reclamado por @Lukasz-Zurek Ver en GitHub
News
Lenguaje dominante
Sin datos de lenguaje
Estrellas
244
Forks
40
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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).

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.