Bagisto Forum

    Bagisto

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

    API connection for product and inventory

    General Discussion
    2
    2
    88
    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.
    • J
      jamme last edited by jamme

      How can I implement an api connection with product and inventory system using REST on my custom theme named store?, Is it really difficult to implement this connecetion? Has anyone tried doing this type of connection?

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

        Hello @jamme
        Hope you are doing well.
        To implement an API connection with the Product and Inventory system using REST you need to install a REST API.

        These are the below commands -

        1. composer require bagisto/rest-api dev-master

        2. Add the below options in the .env file (i.e. http://localhost/public your domain):SANCTUM_STATEFUL_DOMAINS=http://localhost/public

        3. php artisan bagisto-rest-api:install

        To check endpoints & API Documentation:-

        http://localhost/Your_Bagisto/public/api/shop/documentation

        By this, you will get all the Endpoints and get the API Connection regarding Products, Inventory Sources, etc. with REST-API and you can further continue your work.

        These are some images regarding Swagger.

        SwaggerEndpoints.png

        RestApi.png

        We are also preparing a detailed Blog regarding this and will published it soon.

        Thanks & Regards!

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