how to update bagisto APIs ?
-
cannot update bagisto APIs in latest code because its in vendor folder. is there any other way to change defination of bagisto APIs?
-
Hi there,
Can you please elaborate?
What exactly you want to do ? -
Hi there,
You can create your custom package and override the Routes on your package.OR
You can use the Bagisto API's as a package. for this first you need to remove API from composer.json file and then update the composer.
-
@sanjay-webkul i am using add to cart api. which required a & b atributes and i want to ad c atribute in that API how i can do that. ?
-
This post is deleted! -
Hi there,
Can you please share a reference for the same?
This will help me to give you a proper solution. -
@sanjay-webkul can you watch this video i have explained exactly what i wanna do.
https://www.loom.com/share/518929a1fdc34bffa86216b260e43ef0 -
@sanjay-webkul i am also facing same issue. If i need to add two lines of code or add some logic in existing API. How can i do this ?
-
@sanjay-webkul I am also facing the same issue. If i need to add 2 lines of code in existing API, How can i do this ?
-
Hi there,
You can send the C variable and can manage that variable accordingly from Here
We can get the C variable on the CartController.php fileThe route for add-product-to-cart API is : https://github.com/bagisto/rest-api/blob/master/src/Routes/V1/Shop/customer-routes.php#L81
-
@sanjay-webkul can we have zoom meeting. Because there is still some misunderstandings
-
@sanjay-webkul the CartController.php where i am gonna receive c variable is in vendor folder and i can write code there as its going to be remmoved when i run composer again.