A Laravel package to serve the Dokie API documentation UI.
See the demo at: https://dokie.mergesoft.dev/dokie.
- (If you haven't already) Install an OpenAPI documentation generator package, such as dedoc/scramble
- Require Dokie via Composer:
composer require mergehez/dokie
- (Optional) Publish config:
php artisan vendor:publish --tag=dokie-config
see config/dokie.php for configuration options.
- Visit
/dokiein your browser.
- 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
Feel free to contribute to the project by creating issues or pull requests.
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.

