How to customize api WhishList Or Cart For Wocommerce Application

I’m using Strapi latest version
My Question Is About How To Customize the Api Collection that i created To Do what I want is (

I want to Create just One Method create and at the same time findOne to detect if i Trying to send a new request again Telling me it’s already added to your cart or favorite