diff --git a/pkg/api/http/docs/docs.go b/pkg/api/http/docs/docs.go index a576e74..7a56b79 100644 --- a/pkg/api/http/docs/docs.go +++ b/pkg/api/http/docs/docs.go @@ -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", diff --git a/pkg/api/http/docs/swagger.json b/pkg/api/http/docs/swagger.json index 0e0ea5b..dae9825 100644 --- a/pkg/api/http/docs/swagger.json +++ b/pkg/api/http/docs/swagger.json @@ -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", diff --git a/pkg/api/http/docs/swagger.yaml b/pkg/api/http/docs/swagger.yaml index 91f9d17..11233da 100644 --- a/pkg/api/http/docs/swagger.yaml +++ b/pkg/api/http/docs/swagger.yaml @@ -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: