http://localhost:8000/api/create/
{
"name": "Las mascotas 2",
"type_document": 2,
"amount": 10,
"typification": 2,
"price":222,
"image":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...."
}
http://localhost:8000/api/all/
[
{
"id": 13,
"name": "Las mascotas 1",
"type_document": 1,
"amount": 23,
"typification": 1,
"price": "200.82",
"image": "http://localhost:8000/documents/1f084019-ce3d-4a0f-8bfb-56d85e0dbc56.png",
"created_at": "2022-10-07T03:20:49.329078Z",
"updated_at": "2022-10-07T03:20:49.329078Z"
},
{
"id": 14,
"name": "Las mascotas 2",
"type_document": 2,
"amount": 10,
"typification": 2,
"price": "222.00",
"image": "http://localhost:8000/documents/c75b25e2-9a0d-450b-a137-18cf46ff9b47.jpg",
"created_at": "2022-10-07T03:21:46.875995Z",
"updated_at": "2022-10-07T03:21:46.875995Z"
}
]
http://localhost:8000/api/update/1/
{
"name": "Las mascotas 2",
"type_document": 2,
"amount": 10,
"typification": 2,
"price":222,
"image":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...."
}
http://localhost:8000/api/document/2/detail/
{
"id": 2,
"name": "Vendes o Vendes",
"type_document": 2,
"amount": 5,
"typification": 6,
"price": "5.00",
"created_at": "2022-09-23T01:55:46.683327Z",
"updated_at": "2022-09-23T01:55:46.693576Z"
}
http://localhost:8000/api/document/3/delete/
Status 202 Acepted
http://localhost:8000/api/cart/cart-detail/
[
[
"2",
{
"userid": null,
"product_id": 2,
"name": "Vendes o Vendes",
"quantity": 1,
"price": "5.00"
}
],
[
"3",
{
"userid": null,
"product_id": 3,
"name": "Los gatos felices",
"quantity": 1,
"price": "15.50"
}
],
[
"1",
{
"userid": null,
"product_id": 1,
"name": "La princesita final",
"quantity": 2,
"price": "5.00"
}
]
]
The id is the id of the product or document
http://localhost:8000/api/cart/add/1/
http://localhost:8000/api/cart/item_clear/1/
http://localhost:8000/api/cart/item_increment/1/