@cryptotaxi247 / CoPilot / commits / d9106889

route to swagger.json

Taylor committed Jul 13, 2023 at 21:28 UTC d91068899c16cb6b8cb8bb55f00e097677f34a27
1 file changed +39
backend/app/static/swagger.json
+39
@@ -2181,6 +2181,45 @@
2181 }
2182 }
2183 }
2184 + },
2185 + "/influxdb/alerts": {
2186 + "get": {
2187 + "summary": "Get all alerts",
2188 + "description": "Endpoint to get all alerts.",
2189 + "responses": {
2190 + "200": {
2191 + "description": "Successful operation",
2192 + "content": {
2193 + "application/json": {
2194 + "schema": {
2195 + "type": "object",
2196 + "properties": {
2197 + "alerts": {
2198 + "type": "array",
2199 + "items": {
2200 + "type": "object",
2201 + "description": "Alert details"
2202 + }
2203 + }
2204 + }
2205 + }
2206 + }
2207 + }
2208 + },
2209 + "default": {
2210 + "description": "Unexpected error",
2211 + "content": {
2212 + "application/json": {
2213 + "schema": {
2214 + "$ref": "#/components/schemas/Error"
2215 + }
2216 + }
2217 + }
2218 + }
2219 + },
2220 + "operationId": "getAllAlerts",
2221 + "tags": ["InfluxDB"]
2222 + }
2223 }
2224 },
2225 "components": {