Merged in feature/docresult (pull request #105)
Document Result Endpoint * testing * cleantesting * progress * query * lint * readme * dockerclient * api * passtest * tests * test
This commit is contained in:
+9
-6
@@ -1,15 +1,18 @@
|
||||
# Api related artifacts
|
||||
|
||||
## Prometheus metrics
|
||||
Prometheus metrics are exposed for all api endpoints automatically at the standard `/metrics` endpoint. (http://localhost:8080/metrics)
|
||||
|
||||
## Swagger API documentation
|
||||
Automatic API docs are generated and exposed for all routes at http://localhost:8080/swagger/index.html when the api server is running.
|
||||
Prometheus metrics are exposed for all api endpoints automatically at the standard `/metrics` endpoint. (`http://localhost:8080/metrics`)
|
||||
|
||||
## Swagger API documentation
|
||||
|
||||
Automatic API docs are generated and exposed for all routes at `http://localhost:8080/swagger/index.html` when the api server is running.
|
||||
|
||||
## Logging
|
||||
|
||||
## Logging
|
||||
Structured logging is built into all API routes automatically.
|
||||
|
||||
So for example here is a what a few API hits on queryService look like in the logs when using text (as opposed to json)
|
||||
So for example here is a what a few API hits on queryAPI look like in the logs when using text (as opposed to json)
|
||||
|
||||
```bash
|
||||
____ __
|
||||
@@ -29,4 +32,4 @@ time=2025-02-05T13:38:39.807-08:00 level=INFO msg="HTTP request" method=GET uri=
|
||||
time=2025-02-05T13:38:39.871-08:00 level=INFO msg="HTTP request" method=GET uri=/swagger/doc.json status=200 latency=1.163167ms error=<nil> remote_ip=::1
|
||||
time=2025-02-05T13:38:39.871-08:00 level=INFO msg="HTTP request" method=GET uri=/swagger/favicon-32x32.png status=200 latency=60.875µs error=<nil> remote_ip=::1
|
||||
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user