学无先后,达者为师

网站首页 编程语言 正文

tp6 app接口集成Swagger生成接口文档

作者:一直向钱 更新时间: 2022-05-12 编程语言

开发环境是win10系统

1、安装swagger-php扩展

composer require zircote/swagger-php

2、安装swagger-php前端组件

GitHub - swagger-api/swagger-ui: Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.

下载完成把代码放到public目录,如图下

 

原文链接:https://blog.csdn.net/u013519290/article/details/124433653

栏目分类
最近更新