This is an experimental API to manage inventory and stock. All this by managing your users (they must log in).
Rest API for managing items, repurchase, users and stock.
- Add item
- Update item
- Get items by filters
- Get item (by sku)
- Get stock and reorder status
- Add stock
- Reduce stock
- Register user
- Login user
- Laravel 11.9
- SqLite
- Pest 2.0
Install and run
- Clone and move to folder
$ git clone git@github.com:abrahamuchos/inventory-api.git
$ cd inventory-api
- Install dependecies
$ composer install
-
Create a copy of the
.env.example
file and rename it to.env
. Next, configure the necessary environment variables. -
Generate an application key by running
php artisan key:generate
. -
Run
php artisan migrate
to create the database tables. -
Run
php artisandb:seed
to create dummy data and admin user. -
Run
php artisan serve
to start the Laravel development server.
To run all the tests
$ php artisan test
To run a specific test
$ php artisan test --filter test_name_example
Invoice API Collection - Postman
Invoice API Collection - Postman
You can find a .json with the endpoints in /docs/Inventory API.postman_collection.json