how to display title, image and Variation_set price in react from this API
GET /api/products/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"count": 6,
"next": "http://127.0.0.1:8000/api/products/?format=api&limit=1&offset=1",
"previous": null,
"results": [
{
"url": "http://127.0.0.1:8000/api/products/2/?format=api",
"id": 2,
"title": "iPhone Cover",
"image": "/media/products/iphone-cover/iphone-cover-2_8x7c3td.jpg",
"variation_set": [
{
"id": 6,
"title": "Default",
"price": "29.99"
}
]
}
]
}GET /api/products/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"count": 6,
"next": "http://127.0.0.1:8000/api/products/?format=api&limit=1&offset=1",
"previous": null,
"results": [
{
"url": "http://127.0.0.1:8000/api/products/2/?format=api",
"id": 2,
"title": "iPhone Cover",
"image": "/media/products/iphone-cover/iphone-cover-2_8x7c3td.jpg",
"variation_set": [
{
"id": 6,
"title": "Default",
"price": "29.99"
}
]
}
]
}
как отображать заголовок, изображение и цену Variation_set в ответе от этого API
GET / api / products /? Format = api HTTP 200 OK Разрешить:GET, HEAD, OPTIONS Content-Type: application / json Зависит: Accept
{"count": 6, "next": "http://127.0.0.1:8000/api/products/?format=api&limit=1&offset=1"," previous ": null," results ": [{"url": "http://127.0.0.1:8000/api/products/2/?format=api"," id ": 2," title ":" Обложка iPhone "," image ":" /media/products/iphone-cover/iphone-cover-2_8x7c3td.jpg ","var_set": [{"id": 6, "title": "Default", "price": "29.99"}]}]} GET / api / products /? format = api HTTP 200 OK Разрешить: GET, HEAD, ОПЦИИ Тип содержимого: application / json Зависит: Принять
{"count": 6, "next": "http://127.0.0.1:8000/api/products/?format=api&limit=1&offset=1"," previous ": null," results ": [{" url":" http://127.0.0.1:8000/api/products/2/?format=api", "id": 2, "title": "iPhone Cover", "image": "/media/products/iphone-cover/iphone-cover-2_8x7c3td.jpg", "ification_set ": [{"id": 6, "title": "Default", "price": "29.99"}]}]}