Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    how to update bagisto APIs ?

    General Discussion
    4
    12
    519
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hamza7262
      hamza7262 last edited by

      cannot update bagisto APIs in latest code because its in vendor folder. is there any other way to change defination of bagisto APIs?

      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        Hi there,
        Can you please elaborate?
        What exactly you want to do ?

        hamza7262 1 Reply Last reply Reply Quote 0
        • sanjay-webkul
          sanjay-webkul last edited by admin

          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.

          1 Reply Last reply Reply Quote 0
          • hamza7262
            hamza7262 @sanjay-webkul last edited by

            @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. ?

            1 Reply Last reply Reply Quote 0
            • admin
              admin last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • sanjay-webkul
                sanjay-webkul last edited by

                Hi there,
                Can you please share a reference for the same?
                This will help me to give you a proper solution.

                hamza7262 1 Reply Last reply Reply Quote 0
                • hamza7262
                  hamza7262 @sanjay-webkul last edited by hamza7262

                  @sanjay-webkul can you watch this video i have explained exactly what i wanna do.
                  https://www.loom.com/share/518929a1fdc34bffa86216b260e43ef0

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    TayyabTariq last edited by

                    @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 ?

                    1 Reply Last reply Reply Quote 0
                    • T
                      TayyabTariq @hamza7262 last edited by

                      @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 ?

                      1 Reply Last reply Reply Quote 0
                      • sanjay-webkul
                        sanjay-webkul last edited by

                        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 file

                        The route for add-product-to-cart API is : https://github.com/bagisto/rest-api/blob/master/src/Routes/V1/Shop/customer-routes.php#L81

                        T hamza7262 2 Replies Last reply Reply Quote 0
                        • T
                          TayyabTariq @sanjay-webkul last edited by

                          @sanjay-webkul can we have zoom meeting. Because there is still some misunderstandings

                          1 Reply Last reply Reply Quote 0
                          • hamza7262
                            hamza7262 @sanjay-webkul last edited by hamza7262

                            @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.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post