G: G4 document every error code and both content types per response

This commit is contained in:
ari committed 2026-10-20 15:54:13 -04:00
1 parent 34a1e1644c
commit 214e074cca
5 files changed
+82 -22

No files matched your search

+16 -4
View File
@@ -136,7 +136,7 @@
],
"responses": {
"200": {
"description": "Log lines; `text/event-stream` when following",
"description": "Log lines, or `text/event-stream` with `stdout`/`stderr` events when following",
"content": {
"application/json": {
"schema": {
@@ -145,6 +145,11 @@
"$ref": "#/components/schemas/LogLine"
}
}
},
"text/event-stream": {
"schema": {
"type": "string"
}
}
}
},
@@ -585,9 +590,14 @@
],
"responses": {
"200": {
"description": "The peer's body, with `x-slinuxm-peer`, `Content-Type` (`application/json` or `text/event-stream`) and the peer's status",
"description": "The peer's body with the peer's status and `x-slinuxm-peer`; JSON, or `text/event-stream` for a follow",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
}
},
"text/event-stream": {
"schema": {
"type": "string"
}
@@ -1194,7 +1204,9 @@
"bad_request",
"unauthorized",
"unavailable",
"internal"
"internal",
"method_not_allowed",
"forbidden_host"
]
},
"message": {