Bagisto Forum

    Bagisto

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

    API connection

    General Discussion
    2
    2
    173
    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 start an api connection with an product and inventory system?, i just need to import the products that will be coming from them

      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 -

        composer require bagisto/rest-api dev-master

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

        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 publish it soon.

        Thanks & Regards!

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