Ambassador
Swift web framework for mocking HTTP API endpoints, built on the SWSGI interface and served by Embassy or another SWSGI server.
Ambassador is a web framework for Swift that maps URL paths to response handlers, so an app can answer HTTP requests with fixed or generated responses. It is based on SWSGI, the Swift web server gateway interface. The README’s example runs it on Embassy, the HTTP server that the package depends on, and says it can run with other SWSGI-compatible servers.
Handlers include a JSON response, a data response with a custom status and headers, and a decorator that delays another response by a set time or never returns it. Readers collect request bodies as data, JSON or URL-encoded parameters. The router can match paths with regular expressions and passes the captured groups to the handler.
Worth knowing
The README describes the framework as designed for UI automatic testing and API mocking, and its example mocks API endpoints.
Sources
- 2026-10-24: links, Written in, License, GitHub stars
api.github.com/repos/envoy/Ambassador - 2026-10-24: links, Categories, Install with
github.com/envoy/Ambassador/blob/master/README.md - 2026-10-24: Maintainer, License
github.com/envoy/Ambassador/blob/master/LICENSE - 2026-10-24: Runtime
github.com/envoy/Ambassador/blob/master/Package.swift - 2026-10-24: First release
api.github.com/repos/envoy/Ambassador/tags - 2026-10-24: Current major version, Last release
api.github.com/repos/envoy/Ambassador/releases - 2026-10-24: Contributors
api.github.com/repos/envoy/Ambassador/contributors - 2026-10-25: Sites using it (HTTP Archive)
cdn.httparchive.org/v1/technologies