rapidez / multiple-wishlists
Rapidez Multiple Wishlist
Installs: 999
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 4
Open Issues: 0
Language:Blade
Requires
- php: ^8.1|^8.2
- blade-ui-kit/blade-heroicons: ^2.0
- illuminate/database: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
- illuminate/view: ^10.0|^11.0
- rapidez/core: ^3.0
README
Installation
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
)
API endpoints
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 |