API — Wishlist
Documentacao tecnica gerada automaticamente a partir da especificacao OpenAPI.
GET /api/wishlist
List Wishlist
Exemplo resposta (200):
{
"items": [
"..."
],
"total": 0
}
POST /api/wishlist
Add To Wishlist
Corpo do pedido:
| Campo | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| product_id | integer | Sim | Product Id |
Exemplo pedido:
{
"product_id": 0
}
Exemplo resposta (201):
{
"id": 0,
"product_id": 0,
"product": {
"id": 0,
"name": "string",
"slug": "string",
"price": 0,
"sale_price": null,
"image_url": null,
"in_stock": true,
"currency": "string"
},
"created_at": "string"
}
Erros possiveis: 422 Validation Error
DELETE /api/wishlist/{product_id}
Remove From Wishlist
Parametros:
| Nome | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| product_id | integer | Sim | — |
Resposta (204): Successful Response
Erros possiveis: 422 Validation Error
GET /api/wishlist/check/{product_id}
Check Wishlist
Parametros:
| Nome | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| product_id | integer | Sim | — |
Exemplo resposta (200):
{
"in_wishlist": true
}
Erros possiveis: 422 Validation Error
POST /api/wishlist/share
Share Wishlist
Exemplo resposta (200):
{
"share_url": "string",
"share_token": "string"
}
GET /api/wishlist/shared/{token}
View Shared Wishlist
Parametros:
| Nome | Tipo | Obrigatorio | Descricao |
|---|---|---|---|
| token | string | Sim | — |
Exemplo resposta (200):
{
"owner_name": "string",
"items": [
"..."
],
"total": 0
}
Erros possiveis: 422 Validation Error
Documentacao gerada automaticamente.