Bagisto Forum

    Bagisto

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

    How can i create API and get data form bagisto

    General Discussion
    2
    9
    367
    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.
    • T
      Teddi last edited by

      Can someone give me a tutorial about creating an API using GraphQL that retrieve data from bagisto website that we created

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

        Hi there,
        Please take a reference from Here

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

          Hello Sanjay,
          Thanks for answering
          I already follow that and also following this, but when i try in postman, it came to be an error like this
          eac2b3ef-fda1-46c3-8b18-9b4421acc91d-image.png

          can you help me, what i doing wrong in here?

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

            Please check your database credentials in .env file on the project root.
            And run the below command after doing correction on .env file.

            php artisan optimize:clear
            T 1 Reply Last reply Reply Quote 0
            • T
              Teddi @sanjay-webkul last edited by Teddi

              @sanjay-webkul not working, still have the same error, even i create a new user it still error

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

                Hi there,
                I guess DB_USERNAME is blank in .env file.
                Can you please share your .env file?

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

                  @sanjay-webkul here my .env, i even adding new rule on my firewall to handle port
                  40372804-7b46-4009-961c-d06a90647f32-image.png

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

                    @sanjay-webkul said in How can i create API and get data form bagisto:

                    Please check your database credentials in .env file on the project root.
                    And run the below command after doing correction on .env file.

                    Hi there,
                    Please run the given command on your project root directory and if still you are getting the same issue then please let me know.

                    php artisan optimize:clear
                    1 Reply Last reply Reply Quote 0
                    • sanjay-webkul
                      sanjay-webkul last edited by

                      Hi there,
                      as i can check the issue is with your database credentials.please verify the credentials and you can change the db password once and try again.

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