Bagisto Forum

    Bagisto

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

    API access - How to get started for API

    General Discussion
    4
    8
    1459
    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.
    • C
      chetan last edited by

      HI, I just installed Bagisto, I want to start API use but I an unable to understand what parameter need to pass of first request
      http://localhost:8000/public/api/customer/login?
      email=cshelake7@gmail.com&password=9822809268
      http://localhost:8000/public/api/products
      http://localhost:8000/public/api/categories

      All are returning 404 in postman But I am successfully able to access Admin panel
      http://localhost:8000/admin
      please suggest me for API starting

      1 Reply Last reply Reply Quote 0
      • J
        Jyoti last edited by

        @chetan
        Please follow this doc- https://devdocs.bagisto.com/

        hamza7262 1 Reply Last reply Reply Quote 0
        • C
          chetan last edited by chetan

          I read but didn't understood why it return 404
          http://localhost:8000/public/api/products
          can you please share sample request format

          1 Reply Last reply Reply Quote 0
          • C
            chetan last edited by

            How I can run webkul/ API folder API?
            please help me

            1 Reply Last reply Reply Quote 0
            • C
              chetan last edited by

              Hey I got it,
              Thanks for your support
              It need to access by regular PHP port with project name like
              http://localhost:81/bagisto/public/api/categories

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

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • hamza7262
                  hamza7262 @Jyoti last edited by

                  @Jyoti i am using latest, version of API, and i want to make changes in API how i can do that. its located in vendor folder and i cant make changes there. what is the process of updating code for APIs ?

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

                    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
                    • First post
                      Last post