|
|
1 неделя назад | |
|---|---|---|
| .. | ||
| config | 3 недель назад | |
| src | 1 неделя назад | |
| tests | 3 недель назад | |
| README.md | 3 недель назад | |
| composer.json | 3 недель назад | |
Comprehensive REST and GraphQL APIs for seamless e-commerce integration and extensibility.
The fastest way to get started:
composer require bagisto/bagisto-api
php artisan bagisto-api-platform:install
Your APIs are now ready! Access them at:
https://your-domain.com/api/docshttps://your-domain.com/graphqlUse this method if you need more control over the setup.
packages/Webkul/BagistoApi/Edit bootstrap/providers.php:
<?php
return [
// ...existing providers...
Webkul\BagistoApi\Providers\BagistoApiServiceProvider::class,
// ...rest of providers...
];
Edit composer.json and update the autoload section:
{
"autoload": {
"psr-4": {
"Webkul\\BagistoApi\\": "packages/Webkul/BagistoApi/src"
}
}
}
# Install required packages
composer require api-platform/laravel:v4.1.25
composer require api-platform/graphql:v4.2.3
php artisan bagisto-api-platform:install
STOREFRONT_DEFAULT_RATE_LIMIT=100
STOREFRONT_CACHE_TTL=60
STOREFRONT_KEY_PREFIX=storefront_key_
STOREFRONT_PLAYGROUND_KEY=pk_storefront_xxxxxxxxxxxxxxxxxxxxxxxxxx
API_PLAYGROUND_AUTO_INJECT_STOREFRONT_KEY=true
Once verified, access the APIs at:
For issues and questions, please visit:
The Bagisto API Platform is open-source software licensed under the MIT license.