traefik / whoami

Tiny Go server that prints os information and HTTP request to output
https://traefik.io
Apache License 2.0
1.04k stars 223 forks source link

Add OpenAPI spec and endpoint #66

Closed ddtmachado closed 1 year ago

ddtmachado commented 1 year ago

Useful for testing Open API UI dashboards and integrations

ldez commented 1 year ago

First, this PR is not really related to Open API, it's just a way to serve a file (json, yml).

The file needs to be embedded in the binary, the content cannot be changed, then it's less useful.

The goal of the whoami is not to serve files, it's to provide information about networks and performances.

So I recommend creating something else to handle your use case.