bagisto/rest-api

v2.2.0 2024-09-03 07:57 UTC

This package is auto-updated.

Last update: 2024-09-03 08:14:09 UTC


README

Bagisto REST API 是一种使用 Bagisto 核心系统功能的途径。通过使用 Bagisto REST API,您可以集成您的应用程序以提供 Bagisto 的默认内容。

1. 要求

  • Bagisto: v2.2.x

2. 安装

使用以下命令从您的控制台安装 Bagisto Rest API 的稳定版本

composer require bagisto/rest-api
在 .env 文件中添加以下选项(例如 http://localhost/public 您的域名)
SANCTUM_STATEFUL_DOMAINS=http://localhost/public
运行以下命令以配置 REST API L5-Swagger 文档
php artisan bagisto-rest-api:install
检查管理端 API 文档
http://localhost/public/api/admin/documentation
检查商店端 API 文档
http://localhost/public/api/shop/documentation
  • 您还可以查看有关配置 API 文档的 L5-Swagger 指南。