# API call with Swagger Tool

**1. Get all data of wishlist**

API Call with Swagger Tool to get all data of wishlist

<figure><img src="/files/NsaekPukCzpm6qxglrwS" alt=""><figcaption></figcaption></figure>

API call code to get all data of wishlist

<figure><img src="/files/IcXhrudIQUfN8h6QRTRY" alt=""><figcaption></figcaption></figure>

**2. Add product to wishlist**

API call with Swagger Tool to add the product to wishlist

<figure><img src="/files/CUBvEJ6dZ4X46soqD8AS" alt=""><figcaption></figcaption></figure>

API call code to add the product to wishlist

<figure><img src="/files/1nNBNuj91V8ngccWHDan" alt=""><figcaption></figcaption></figure>

**3. Delete product from wishlist**

API call with Swagger Tool to delete the product from wishlist

<figure><img src="/files/CpBfVaDFQlCBuLXtle7F" alt=""><figcaption></figcaption></figure>

API call code to delete the product from wishlist

<figure><img src="/files/DGyePQuBXx8WAGfRxLfZ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magecomp.com/magento-2-wishlist-rest-api-extension/api-call-with-swagger-tool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
