You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1657,6 +1657,21 @@ sources:
1657
1657
1658
1658
The server exposes a REST API at `http://localhost:8080` (default). For complete API documentation with all request/response schemas, see the interactive Swagger UI at `/api/v1/docs/`.
1659
1659
1660
+
#### Request Body Formats (JSON and YAML)
1661
+
1662
+
Every endpoint that accepts a request body accepts **both JSON and YAML** payloads
1663
+
interchangeably. The format is selected from the request's `Content-Type` header:
1664
+
send `application/json` (the default) for JSON, or one of `application/yaml`,
1665
+
`application/x-yaml`, or `text/yaml` for YAML. When no `Content-Type` is provided,
1666
+
the body is parsed as JSON.
1667
+
1668
+
```bash
1669
+
# Create a query using a YAML body
1670
+
curl -X POST http://localhost:8080/api/v1/queries \
0 commit comments