Skip to content
Snippets Groups Projects
Commit b2b0fe5c authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

v0.5 a few more statuscode checks to complete features; update docs

parent be92cc78
No related branches found
No related tags found
No related merge requests found
# REST API CLIENT # # REST API CLIENT #
This is a bash solution to script REST API calls. This is a bash solution to script REST API calls.
The specialties of this component are The specialties of this component are
* It was build to simplify http calls and use it in scripts * It was build to simplify http calls and use it in scripts
...@@ -12,6 +13,7 @@ The specialties of this component are ...@@ -12,6 +13,7 @@ The specialties of this component are
Source: https://git-repo.iml.unibe.ch/iml-open-source/bash-rest-api-client Source: https://git-repo.iml.unibe.ch/iml-open-source/bash-rest-api-client
License: GNU GPL 3 License: GNU GPL 3
...@@ -127,8 +129,11 @@ INSTRUCTION: ...@@ -127,8 +129,11 @@ INSTRUCTION:
- check http status code - check http status code
http.getStatus
Get the http status as string Ok|Redirect|Error
http.getStatuscode http.getStatuscode
Get the http status code of a request Get the http status code of a request as integer
http.isOk http.isOk
Check if the http response code is a 2xx Check if the http response code is a 2xx
......
...@@ -646,8 +646,11 @@ INSTRUCTION: ...@@ -646,8 +646,11 @@ INSTRUCTION:
- check http status code - check http status code
http.getStatus
Get the http status as string Ok|Redirect|Error
http.getStatuscode http.getStatuscode
Get the http status code of a request Get the http status code of a request as integer
http.isOk http.isOk
Check if the http response code is a 2xx Check if the http response code is a 2xx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment