Bagisto Forum

    Bagisto

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

    api documentation not work

    Modules
    2
    8
    353
    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.
    • O
      othmasoft last edited by

      i installed api as this link
      https://bagisto.com/en/bagisto-api/
      but documentation not work with me
      https://ashtiri.com/public/api/shop/documentation

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @othmasoft

        Kindly let us know if the error message you are facing also provide your bagisto and rest api versions also it might be there is some issue regarding the configurations.

        you need to get it run through swagger where all the end points of the API of Shop and Admin are available

        Also you can go through the official devdocs through the link below.

        https://devdocs.bagisto.com/2.x/api/getting-started-with-the-api.html#rest-api

        Thanks & Regards

        1 Reply Last reply Reply Quote 0
        • O
          othmasoft last edited by

          i got the reason
          Screenshot 2024-12-28 142512.png

          1 Reply Last reply Reply Quote 0
          • Rishabh-Webkul
            Rishabh-Webkul last edited by

            Hello @othmasoft

            Ok great

            Hopefully, the issue is resolved now.

            Thanks & Regards

            1 Reply Last reply Reply Quote 0
            • O
              othmasoft last edited by

              not yet

              the js files path
              http://ashtiri.local/C:\vhosts\ashtiri\storage\api-docs/shop/asset/swagger-ui.css?v=0755b7093afdd36d03212b65315f0209

              may it config issues in
              \config\l5-swagger.php

              1 Reply Last reply Reply Quote 0
              • Rishabh-Webkul
                Rishabh-Webkul last edited by

                Hello @othmasoft

                Did you add SANCTUM_STATEFUL_DOMAINS in your .env file

                Kindly Confirm.

                Thanks & Regards

                O 2 Replies Last reply Reply Quote 0
                • O
                  othmasoft @Rishabh-Webkul last edited by

                  @Rishabh-Webkul said in api documentation not work:

                  SANCTUM_STATEFUL_DOMAINS

                  SANCTUM_STATEFUL_DOMAINS=http://ashtiri.local/public

                  1 Reply Last reply Reply Quote 0
                  • O
                    othmasoft @Rishabh-Webkul last edited by

                    @Rishabh-Webkul SANCTUM_STATEFUL_DOMAINS=http://ashtiri.com/public

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