定制 mergehez/dokie 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mergehez/dokie

最新稳定版本:0.0.11

Composer 安装命令:

composer require mergehez/dokie

包简介

An API Documentation tool for your APIs (Dokie for Laravel)

README 文档

README

A Laravel package to serve the Dokie API documentation UI.

See the main repository at: https://github.com/mergehez/dokie

See the demo at: https://dokie.mergesoft.dev/dokie.

Installation

  1. (If you haven't already) Install an OpenAPI documentation generator package, such as dedoc/scramble
  2. Require Dokie via Composer:
    composer require mergehez/dokie
  3. (Optional) Publish config:
    php artisan vendor:publish --tag=dokie-config

    see config/dokie.php for configuration options.

  4. Visit /dokie in your browser.

Features

  • OpenAPI Support: Automatically generates the UI based on OpenAPI specifications.
  • Configurable: Set predefined variables, headers, and postscripts.
  • Hostname Switching: Easily switch between different hostnames for testing.
  • Favorites: Mark endpoints as favorites for quick access.
  • Environment Variables: Add/remove environment variables to manage sensitive data like API keys.
  • Global headers: Set global headers for all requests.
  • Postscripts: Add custom scripts that run after a request is made, allowing you to set environment variables or global headers based on the response. (JavaScript)
  • Endpoint Configuration: Easily add path/query parameters, headers and body to requests. You can use environment variables just like in Postman.

Note that changes are stored in your local machine and not shared with other people using the same project. Following information is stored in the browser's indexedDB:

  • Environment variables
  • Global headers
  • Favorite endpoints
  • Current hostname
  • Endpoint specific: Path/Query parameters, Headers and Postscript

Screenshot

Screenshot

Contributing

Feel free to contribute to the project by creating issues or pull requests.

License

This package is open-sourced software licensed under the MIT license. Feel free to use, modify, and distribute this code as per the terms of the license.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-25