-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli/api: 1.1.0 changes; / -> /health endpoint
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,10 @@ | |
# <https://www.gnu.org/licenses/>. | ||
|
||
#* @apiTitle Hydrofabric Subsetter | ||
#* @apiDescription This is a sample server for a subsetting Cloud Native Hydrofabrics | ||
#* @apiDescription This is a REST API for subsetting cloud-native hydrofabrics. | ||
#* @apiContact list(name = "hfsubsetCLI API Support", email = "[email protected]") | ||
#* @apiLicense list(name = "GNU General Public License (GPL-3.0)", url = "https://www.gnu.org/licenses/") | ||
#* @apiVersion 1.1.0 | ||
|
||
logger::log_formatter(logger::formatter_glue_safe) | ||
|
||
|
@@ -149,9 +150,9 @@ function(req) { | |
} | ||
|
||
#* Health Check | ||
#* @head / | ||
#* @head /health | ||
function(req, res) { | ||
res$setHeader("X-HFSUBSET-API-VERSION", "1.0.0") | ||
res$setHeader("X-HFSUBSET-API-VERSION", "1.1.0") | ||
res | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters