mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-19 12:16:34 +00:00
regenerate swagger docs for /fault_injection endpoints
This commit is contained in:
@@ -19,6 +19,7 @@ const docTemplate = `{
|
||||
},
|
||||
"version": "{{.Version}}"
|
||||
},
|
||||
"host": "{{.Host}}",
|
||||
"basePath": "{{.BasePath}}",
|
||||
"paths": {
|
||||
"/": {
|
||||
@@ -263,6 +264,77 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/fault_injection/disable": {
|
||||
"post": {
|
||||
"description": "restores normal responses",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Fault Injection"
|
||||
],
|
||||
"summary": "Disable fault injection",
|
||||
"responses": {
|
||||
"202": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/fault_injection/enable": {
|
||||
"post": {
|
||||
"description": "makes the server respond with HTTP 500 for all non-probe endpoints",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Fault Injection"
|
||||
],
|
||||
"summary": "Enable fault injection",
|
||||
"responses": {
|
||||
"202": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/fault_injection/status": {
|
||||
"get": {
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Fault Injection"
|
||||
],
|
||||
"summary": "Get fault injection status",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/headers": {
|
||||
"get": {
|
||||
"description": "returns a JSON array with the request HTTP headers",
|
||||
|
||||
@@ -261,6 +261,77 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/fault_injection/disable": {
|
||||
"post": {
|
||||
"description": "restores normal responses",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Fault Injection"
|
||||
],
|
||||
"summary": "Disable fault injection",
|
||||
"responses": {
|
||||
"202": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/fault_injection/enable": {
|
||||
"post": {
|
||||
"description": "makes the server respond with HTTP 500 for all non-probe endpoints",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Fault Injection"
|
||||
],
|
||||
"summary": "Enable fault injection",
|
||||
"responses": {
|
||||
"202": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/fault_injection/status": {
|
||||
"get": {
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Fault Injection"
|
||||
],
|
||||
"summary": "Get fault injection status",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/headers": {
|
||||
"get": {
|
||||
"description": "returns a JSON array with the request HTTP headers",
|
||||
|
||||
@@ -214,6 +214,52 @@ paths:
|
||||
summary: Environment
|
||||
tags:
|
||||
- HTTP API
|
||||
/fault_injection/disable:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: restores normal responses
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"202":
|
||||
description: OK
|
||||
schema:
|
||||
type: string
|
||||
summary: Disable fault injection
|
||||
tags:
|
||||
- Fault Injection
|
||||
/fault_injection/enable:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: makes the server respond with HTTP 500 for all non-probe endpoints
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"202":
|
||||
description: OK
|
||||
schema:
|
||||
type: string
|
||||
summary: Enable fault injection
|
||||
tags:
|
||||
- Fault Injection
|
||||
/fault_injection/status:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
summary: Get fault injection status
|
||||
tags:
|
||||
- Fault Injection
|
||||
/headers:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user