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

Ouverte
#6,150 0 commentaires 0 réactions 1 personne assignée Réclamée par @Lukasz-Zurek Voir sur GitHub
News
Langage dominant
Aucune donnée de langage
Étoiles
244
Forks
40
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.