1. Verify Default Configuration
By default, Geni inspects:- Routes: Routes matching the
apiprefix (e.g.,/api/*). - Migrations: Files inside
database_path('migrations'). - Docs Portal: Served at
/docs/api(gated tolocalenvironment). - JSON Specification: Served at
/docs/api.json.
config/geni.php.
2. Browse the Documentation Portal
Start your local Laravel server:
3. Export OpenAPI Specification
To export a static OpenAPI 3.1.0 JSON file to your project root or public directory:4. Run CI Drift Detection
Add a drift check step to your CI pipeline to ensure OpenAPI documentation never goes out of sync with your code:openapi.json was committed, the command exits with code 1 and prints a human-readable diff.
Congratulations! You now have automated, static-analysis API documentation set up in your Laravel application.