You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am going to for this project and start the development. If you have any preferred guidelines on how you structure your code let me know. I am using a pattern like this.
Namespace
/yith/wishlist/v1
Proposed Endpoint for (CRUD)
GET {url}/wishlists
Users with credentials will be returned with an array of wishlists object.
POST {url}/wishlists
Add product/s to wishlist endpoint. Users with credentials will be returned with a wishlists object created from the POST data. if no wishlist id was provided a new wishlist is created otherwise the object with the given id returned.
Params:
wishlistId: id of the wishlist productIds: an array of product ids. for a single product add send one element array. userId (optional): In the case of client credentials or API key, admin user auth send userId. For a user auth userId isn't required because userId will be gathered from authentication. Defaults to the current user. (needs discussion)
DELETE {url}/wishlists/{id}
Clears the wishlist data.
DELETE {url}/wishlists/{id}/product/{product_id}
Removes the given product id from wishlist id
The text was updated successfully, but these errors were encountered:
See yithemes/yith-woocommerce-wishlist#9
Continue of the discussion from WP Support Forum
I am going to for this project and start the development. If you have any preferred guidelines on how you structure your code let me know. I am using a pattern like this.
Namespace
/yith/wishlist/v1
Proposed Endpoint for (CRUD)
GET
{url}/wishlists
Users with credentials will be returned with an array of wishlists object.
POST
{url}/wishlists
Add product/s to wishlist endpoint. Users with credentials will be returned with a wishlists object created from the POST data. if no wishlist id was provided a new wishlist is created otherwise the object with the given id returned.
Params:
wishlistId
: id of the wishlistproductIds
: an array of product ids. for a single product add send one element array.userId
(optional): In the case of client credentials or API key, admin user auth send userId. For a user auth userId isn't required because userId will be gathered from authentication. Defaults to the current user. (needs discussion)DELETE
{url}/wishlists/{id}
Clears the wishlist data.
DELETE
{url}/wishlists/{id}/product/{product_id}
Removes the given product id from wishlist id
The text was updated successfully, but these errors were encountered: