composer require rapidez/multiple-wishlists
It's not recommended to publish every view, rather you should overwrite only the files necessary. However, you can still publish all of the views with the following command:
php artisan vendor:publish --provider="Rapidez\MultipleWishlist\MultipleWishlistServiceProvider" --tag=views
You also should probably add a new "wishlists" button to the Rapidez account menu, if you use it in your project (which is in rapidez/account/resources/views/partials/menu.blade.php
)
The API uses mostly Laravel apiResource endpoints. All of the exposed endpoints can be found below. Note that every request except for GET /wishlists/shared/{token}
requires a bearer token header for authorization. This is the magento oauth token of the customer.
Endpoint | Parameters | Description |
---|---|---|
GET /wishlists/ | None | Gets a list of all the customer's wishlists |
POST /wishlists/ |
|
Creates a new wishlist with the given title |
PATCH /wishlists/{id} |
|
Updates the data of a wishlist |
DELETE /wishlists/{id} | None | Deletes a wishlist |
GET /wishlists/shared/{token} | None | Gets a shared wishlist |
Endpoint | Parameters | Description |
---|---|---|
POST /wishlists/item |
|
Adds a new item to the given wishlist |
PATCH /wishlists/item/{id} |
|
Updates the data of an item |
DELETE /wishlists/item/{id} | None | Deletes an item |