Download the PHP package bagisto/graphql-api without Composer
On this page you can find all versions of the php package bagisto/graphql-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package graphql-api
Bagisto GraphQL API
Bagisto's GraphQL API enables a seamless, headless eCommerce experience built on Laravel. This API delivers ultra-fast, dynamic, and personalized shopping experiences through a scalable, open-source platform.
Read our full documentation: Bagisto GraphQL API Docs
This API was developed in collaboration with the Ucraft Team.
Requirements:
- Bagisto: v2.3.0
Installation:
To install the Bagisto GraphQL API, follow these steps:
-
Install via Composer
Run the following command in your terminal to install the GraphQL API package:
-
Update Middleware Configuration
In your
bootstrap/app.php
file, add the following session middleware changes:This ensures that session and cookie middleware are applied globally across all routes, including API and GraphQL endpoints.
-
Update Environment Settings
Add the following entries to your
.env
file to configure JWT settings: -
Publish Assets and Configurations
Run the command below to publish assets and configurations for Bagisto GraphQL:
Usage:
-
GraphQL Playground
After installation, you can test your API through the GraphQL Playground. Visit:
-
Postman Integration
Alternatively, you can test the API using Postman by accessing:
-
Authorization
To authorize requests for certain APIs, you may need to provide the
MOBIKUL_API_KEY
.-
Locate the API Key
Find the
MOBIKUL_API_KEY
in your.env
file: -
Share with App Development Team
Copy this key and securely share it with the Development team as required for API authorization.
-
Using the API Key
When making requests to protected admin endpoints, include the API key in the request headers:
Replace
your-mobikul-api-key
with the actual value from your.env
file.
-
That's it! Your Bagisto GraphQL API is now ready. Execute the project on your specified domain and start building your headless eCommerce solution.
All versions of graphql-api with dependencies
nuwave/lighthouse Version ^6.23
mll-lab/laravel-graphiql Version ^3.1