nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.29k stars 325 forks source link

OpenAPI service discovery document #957

Open skybert opened 10 months ago

skybert commented 10 months ago

Hi there,

accessing the root document of Unit returns a proprietary JSON document describing the service(s):

$ curl --unix-socket /var/run/control.unit.sock http://localhost/

I would suggest adding support for OpenAPI, either as a replacement for the current format or as an additional /openapi.json endpoint.

This has some good properties, including:

Cheers,

-Torstein