OpenAPI Server Component

A native Delphi component that publishes your endpoints as a valid OpenAPI 3.x document and serves them from a single component — integrated with the sgcWebSockets HTTP server.

TsgcOpenAPIServer

Drop the server component onto your form or create it in code to expose an OpenAPI document and route requests from a single place.

Publish a Spec

Expose a live openapi.json or openapi.yaml document for the endpoints your server publishes. Ready to feed into client generators, SwaggerUI and Redoc.

Build From a Spec

Bind handlers directly to the operations described in an OpenAPI document. Routing, parameter binding, and content negotiation are derived from the spec.

sgcWebSockets Integration

Plugs straight into the sgcWebSockets HTTP server, sharing the same TLS, HTTP/2, authentication and logging pipeline used elsewhere in your application.

Server Details

Routing

Path templates, path parameters, query parameters, headers and cookies are wired up automatically from the OpenAPI paths section.

Validation

Incoming requests and outgoing responses are validated against the schemas declared in the document, with detailed error reports for mismatched payloads.

Security Schemes

Built-in support for API key, OAuth2, JWT and HTTP Basic authentication — reusing the same security scheme definitions the parser produces from a spec.

Content Negotiation

Automatic JSON and YAML serialisation, multipart and form-encoded bodies, and per-operation produces / consumes handling.

Documentation Endpoints

Optional embedded SwaggerUI and Redoc UIs served from the same component, pointing at the same live OpenAPI document.

Same Bundle

Included in every sgcOpenAPI licence (Single, Team, Site) alongside the parser, code generator and 1,195+ pre-built cloud SDKs — no separate purchase.

Try the Server

Download the free trial and publish your first OpenAPI document in minutes.