From 1b0d5449a09da63378e058330831dc194b29e451 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Fri, 23 Jun 2023 10:16:13 +0200 Subject: [PATCH] update postman collection --- Cryptgeon.postman_collection.json | 108 ++++++++++++++++++++++++++++-- 1 file changed, 104 insertions(+), 4 deletions(-) diff --git a/Cryptgeon.postman_collection.json b/Cryptgeon.postman_collection.json index 7919ae9..08d3c44 100644 --- a/Cryptgeon.postman_collection.json +++ b/Cryptgeon.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "52d9e661-2d99-47f8-b09a-40b6a1c0b364", + "_postman_id": "3aaeac19-4eac-4911-b3c8-912b17a48634", "name": "Cryptgeon", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, @@ -137,7 +137,7 @@ } ], "cookie": [], - "body": null + "body": "" } ] }, @@ -479,7 +479,7 @@ } ], "cookie": [], - "body": null + "body": "" } ] } @@ -489,7 +489,7 @@ "name": "Status", "item": [ { - "name": "Get", + "name": "Get server status", "request": { "method": "GET", "header": [], @@ -554,6 +554,106 @@ "body": "{\n \"version\": \"2.3.0-beta.4\",\n \"max_size\": 10485760,\n \"max_views\": 100,\n \"max_expiration\": 360,\n \"allow_advanced\": true,\n \"theme_image\": \"\",\n \"theme_text\": \"\",\n \"theme_page_title\": \"\",\n \"theme_favicon\": \"\"\n}" } ] + }, + { + "name": "Health Check", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{BASE}}/live/", + "host": [ + "{{BASE}}" + ], + "path": [ + "live", + "" + ] + }, + "description": "Return `200` for healthy service. `503` if service is unavailable." + }, + "response": [ + { + "name": "Healthy", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{BASE}}/live/", + "host": [ + "{{BASE}}" + ], + "path": [ + "live", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "transfer-encoding", + "value": "chunked" + }, + { + "key": "vary", + "value": "accept-encoding" + }, + { + "key": "content-encoding", + "value": "gzip" + }, + { + "key": "date", + "value": "Thu, 22 Jun 2023 20:17:58 GMT" + } + ], + "cookie": [], + "body": null + }, + { + "name": "Service Unavilable", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{BASE}}/live/", + "host": [ + "{{BASE}}" + ], + "path": [ + "live", + "" + ] + } + }, + "status": "Service Unavailable", + "code": 503, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "transfer-encoding", + "value": "chunked" + }, + { + "key": "content-encoding", + "value": "gzip" + }, + { + "key": "vary", + "value": "accept-encoding" + }, + { + "key": "date", + "value": "Thu, 22 Jun 2023 20:18:55 GMT" + } + ], + "cookie": [], + "body": null + } + ] } ] }