承接 luisj/postman-collection-viewer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luisj/postman-collection-viewer

Composer 安装命令:

composer require luisj/postman-collection-viewer

包简介

Muestra la documentacion de una api en una vista blade a partir de una coleccion de postman

README 文档

README

Postman Collection Viewer es un paquete PHP que se integra perfectamente con Laravel para renderizar la documentación de una API. Carga una colección JSON exportada desde Postman y la muestra en una vista blade.

Instalación

Instalacion del paquete con composer:

composer require luisj/postman-collection-viewer

Publicar los archivos css y js de la vista blade:

php artisan vendor:publish --provider="Luisj\PostmanCollectionViewer\PostmanCollectionViewerServiceProvider" --tag=public

Instrucciones de uso

Primero debes de exportar la collecion de postman dentro de alguna carpeta en tu proyecto, para poder renderizarla de la siguente forma:

use \Luisj\PostmanCollectionViewer\Facades\PostmanCollectionViewer;

$path_collection = base_path() . "/resources/postman/postman_collection.json";

return PostmanCollectionViewer::loadCollection($path_collection)->renderView();

Tambien se puede cargar el enviroment

$path_collection = base_path() . "/resources/postman/postman_collection.json";
$path_enviroment = base_path() . "/resources/postman/postman_environment.json";

return PostmanCollectionViewer::loadCollection($path_collection)
       ->loadEnviroment($path_enviroment)
       ->renderView();

统计信息

  • 总下载量: 69
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-07-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固