Skip to main content

Overview

Publish the default configuration file using Artisan:
The configuration is saved to config/geni.php.

Options

Document Information (info)

Route Discovery (api_path & routes)

Servers (servers)

Defaults to null (no servers list).

Database Migrations (migration_paths)

Schema Overrides (schema_overrides)

Security Schemes (security_scheme & middleware_security)

Documentation Renderer (renderer & renderers)

See Documentation Renderers.

Documentation Routing & Environment Gates

viewApiDocs is defined in your application, for example Gate::define('viewApiDocs', fn (?User $user) => $user?->isAdmin());. See Documentation Authentication.

Documentation Authentication (docs_auth)

  • Both username and password set: the credentials gate is enabled.
  • Both blank or null: no credentials gate.
  • Only one of them set: the docs are locked (fails closed).
  • Credentials are compared in constant time; form-auth logout regenerates the session id and CSRF token.

Multi-Version APIs (apis)

Only default and the keys of apis are valid API names: an unknown ?api= value returns 404 and an unknown --api option makes Artisan commands fail.

Model Context Protocol (mcp)

See MCP for HTTP execution and Tool Naming for how generated operationIds affect tool names.

Extensions (extensions)

The same can be registered in code with Geni::configure(). See Customizing the Document.