{"id":10993,"date":"2021-10-11T14:43:50","date_gmt":"2021-10-11T09:13:50","guid":{"rendered":"https:\/\/magecomp.com\/support\/?post_type=manual_documentation&#038;p=10993"},"modified":"2024-09-24T14:36:47","modified_gmt":"2024-09-24T09:06:47","slug":"api-call-swagger-tool","status":"publish","type":"manual_documentation","link":"https:\/\/magecomp.com\/support\/docs\/wishlist-rest-api-magento-2\/api-call-swagger-tool\/","title":{"rendered":"API call with Swagger Tool"},"content":{"rendered":"<p><strong>1. Get all data of wishlist<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">API Call with Swagger Tool to get all data of wishlist<\/span><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-13962\" title=\"API call with swagger tool for get all wishlist data using customer id\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-get-all-wishlist-data-using-customer-id.png\" alt=\"API call with swagger tool for get all wishlist data using customer id\" width=\"1200\" height=\"600\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-get-all-wishlist-data-using-customer-id.png 1200w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-get-all-wishlist-data-using-customer-id-300x150.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-get-all-wishlist-data-using-customer-id-1024x512.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-get-all-wishlist-data-using-customer-id-768x384.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">API call code to get all data of wishlist<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-13963\" title=\"Wishlist product data\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Wishlist-product-data.png\" alt=\"Wishlist product data\" width=\"1200\" height=\"600\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Wishlist-product-data.png 1200w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Wishlist-product-data-300x150.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Wishlist-product-data-1024x512.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Wishlist-product-data-768x384.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><strong>2. Add product to wishlist<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">API call with Swagger Tool to add the product to wishlist<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-13964\" title=\"API call with swagger tool for add product to wishlist\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-add-product-to-wishlist.png\" alt=\"API call with swagger tool for add product to wishlist\" width=\"1200\" height=\"600\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-add-product-to-wishlist.png 1200w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-add-product-to-wishlist-300x150.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-add-product-to-wishlist-1024x512.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-add-product-to-wishlist-768x384.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">API call code to add the product to wishlist<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13965\" title=\"Product added successfully to wishlist\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-added-successfully-to-wishlist.png\" alt=\"Product added successfully to wishlist\" width=\"1200\" height=\"600\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-added-successfully-to-wishlist.png 1200w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-added-successfully-to-wishlist-300x150.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-added-successfully-to-wishlist-1024x512.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-added-successfully-to-wishlist-768x384.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><strong>3. Delete product from wishlist<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">API call with Swagger Tool to delete the product from wishlist<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13966\" title=\"API call with swagger tool for delete product from wishlist\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-delete-product-from-wishlist.png\" alt=\"API call with swagger tool for delete product from wishlist\" width=\"1200\" height=\"600\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-delete-product-from-wishlist.png 1200w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-delete-product-from-wishlist-300x150.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-delete-product-from-wishlist-1024x512.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/API-call-with-swagger-tool-for-delete-product-from-wishlist-768x384.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">API call code to delete the product from wishlist<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13967\" title=\"Product deleted successfully from wishlist\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-deleted-successfully-from-wishlist.png\" alt=\"Product deleted successfully from wishlist\" width=\"1200\" height=\"600\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-deleted-successfully-from-wishlist.png 1200w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-deleted-successfully-from-wishlist-300x150.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-deleted-successfully-from-wishlist-1024x512.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2021\/10\/Product-deleted-successfully-from-wishlist-768x384.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":10987,"menu_order":2,"template":"","manualdocumentationcategory":[4009],"manual_doc_tag":[],"class_list":["post-10993","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-m2-wishlist-rest-api"],"_links":{"self":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/10993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/10993\/revisions"}],"predecessor-version":[{"id":13968,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/10993\/revisions\/13968"}],"up":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/10987"}],"wp:attachment":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/media?parent=10993"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manualdocumentationcategory?post=10993"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_doc_tag?post=10993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}