Skip to content

Reference

Complete reference documentation for NpgsqlRest.

Annotations Reference

Comment annotations control how PostgreSQL functions are exposed as HTTP endpoints. Add annotations to function comments to configure routing, authentication, caching, and more.

HTTP & Routing

  • HTTP - Expose function as HTTP endpoint
  • PATH - Set custom endpoint path
  • ENABLED - Enable endpoint for specific tags
  • DISABLED - Disable endpoint for specific tags
  • TAGS - Filter annotations by tags

Authorization

Basic Authentication

Request Configuration

Response Configuration

Caching & Performance

Server-Sent Events

Upload & Policies

Context & Security

Configuration Reference

Configuration options control the server behavior, database connections, security, and features. Settings can be provided via JSON files, environment variables, or command-line arguments.

Core Settings

Security

Features

Performance

Infrastructure

Released under the MIT License.