Skip to content
AI-assisted, verified against source

Configuration Reference

Complete reference documentation for all NpgsqlRest configuration options.

For an introduction to how configuration works (sources, precedence, environment variables, command-line arguments), see the Configuration Guide.

Latest Default Configuration

See the Latest Default Configuration for a complete reference of all default settings for version 3.16.3.

Reference Sections

Core Settings

  • Top-Level Settings - Application identity, URLs, and startup message
  • Config Section - Configuration file processing and environment variables
  • NpgsqlRest Options - Core API generation settings (URL prefixes, naming conventions, request handling)
  • Routine Options - PostgreSQL routine handling (language filtering, custom types)
  • Connection - Database connection strings and settings
  • Server - Kestrel web server and SSL/TLS configuration

Security

Features

  • SQL File Source - REST API endpoints from SQL files
  • Proxy - Reverse proxy support for forwarding requests to upstream services
  • OpenAPI - OpenAPI/Swagger documentation generation
  • MCP - Model Context Protocol server — expose routines as MCP tools for AI agents
  • HTTP Files - HTTP test file generation
  • Code Generation - Client code generation (TypeScript, etc.)
  • Uploads - File upload handling
  • Table Format - HTML table and Excel spreadsheet rendering for function results
  • HTTP Client - HTTP Types for external API calls from PostgreSQL functions

Performance

Infrastructure

Comments