API connection for product and inventory
-
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?
-
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.
We are also preparing a detailed Blog regarding this and will published it soon.
Thanks & Regards!
-