Favorites
POST putting item to favorites
/api/favorites
Добавление позиции в избранное
Click to expand to see the details
cURL Example:
curl --location --request POST 'https://barakat.tekmates.pro/api/favorites?id=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
--header 'Authorization: Bearer <token>' \
DELETE delete item from favorites
/api/favorites
Удаление позиции из избранного
Click to expand to see the details
cURL Example:
curl --location --request DELETE 'https://barakat.tekmates.pro/api/favorites?id=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
--header 'Authorization: Bearer <token>' \
DELETE delete all items from favorites
/api/favorites
Удаление всех позиций из избранного
Click to expand to see the details
cURL Example:
curl --location --request DELETE 'https://barakat.tekmates.pro/api/favorites' \
--header 'Authorization: Bearer <token>' \
GET getting favorite items
Path
/api/favorites
Получение списка избранных позиций
Click to expand to see the details
cURL Example:
curl --location --request GET 'https://barakat.tekmates.pro/api/favorites' \
--header 'Content-Language: RU' \
--header 'Authorization: Bearer <token>' \
Response Body:
[
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"categoryId": "fbb40943-9060-d344-0191-c7d7827c6964",
"outOfStock": false,
"imageUrl": "https://i.pinimg.com/enabled/564x/d3/09/f9/d309f9159167adacefdc4bb8ff30b78f.jpg",
"title": "Котлетка с пюрешкой",
"description": "пюре, котлета",
"price": 1000.20
}
]
Edited by Aleksandr Kosorukov