You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users may submit an HTTP request to view their purchase history. This handler searches the users' logs and returns items that the user purchased. Each item in the log has a flag which indicates if the item was bought, viewed, or searched by the user. This handler should return the items with the bought flag. If there are no such items, it returns an empty collection. The handler may interact with a 3rd party persistence library to retrieve data. If any of the input arguments are empty or null, a 400 response should be returned with a description. An example JSON log object is { id: Number, userId: String, itemId: Number, action: String, date: String, adtType: String}.
Important notes. The endpoint address should be "/purchasesHistories". URL query parameter: "userId"
The text was updated successfully, but these errors were encountered:
Users may submit an HTTP request to view their purchase history. This handler searches the users' logs and returns items that the user purchased. Each item in the log has a flag which indicates if the item was bought, viewed, or searched by the user. This handler should return the items with the bought flag. If there are no such items, it returns an empty collection. The handler may interact with a 3rd party persistence library to retrieve data. If any of the input arguments are empty or null, a 400 response should be returned with a description. An example JSON log object is { id: Number, userId: String, itemId: Number, action: String, date: String, adtType: String}.
Important notes. The endpoint address should be "/purchasesHistories". URL query parameter: "userId"
The text was updated successfully, but these errors were encountered: