wyzo/graphql-api
Composer 安装命令:
composer require wyzo/graphql-api
包简介
Wyzo GraphQL API
README 文档
README
Wyzo 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.
Installation:
To install the Wyzo GraphQL API, follow these steps:
-
Install via Composer
Run the following command in your terminal to install the GraphQL API package:
composer require wyzo/graphql-api dev-main
-
Update Middleware Configuration
In the
app/Http/Kernel.phpfile, move the following middleware from thewebsection in themiddlewareGroupsarray to the globalmiddlewarearray:\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class,
-
Update Environment Settings
Add the following entries to your
.envfile to configure JWT settings:JWT_TTL=525600 JWT_SHOW_BLACKLIST_EXCEPTION=true
-
Publish Assets and Configurations
Run the command below to publish assets and configurations for wyzo GraphQL:
php artisan wyzo-graphql:install
Usage:
-
GraphQL Playground
After installation, you can test your API through the GraphQL Playground. Visit:
http://your-domain.com/graphiql -
Postman Integration
Alternatively, you can test the API using Postman by accessing:
http://your-domain.com/graphql
统计信息
- 总下载量: 623
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-17