Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bash-rest-api-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
bash-rest-api-client
Commits
b2b0fe5c
Commit
b2b0fe5c
authored
5 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
readme.md
+7
-2
7 additions, 2 deletions
readme.md
rest-api-client.sh
+4
-1
4 additions, 1 deletion
rest-api-client.sh
with
11 additions
and
3 deletions
readme.md
+
7
−
2
View file @
b2b0fe5c
# REST API CLIENT #
This is a bash solution to script REST API calls.
The specialties of this component are
*
It was build to simplify http calls and use it in scripts
...
...
@@ -12,6 +13,7 @@ The specialties of this component are
Source: https://git-repo.iml.unibe.ch/iml-open-source/bash-rest-api-client
License: GNU GPL 3
...
...
@@ -127,8 +129,11 @@ INSTRUCTION:
- check http status code
http.getStatus
Get the http status as string Ok|Redirect|Error
http.getStatuscode
Get the http status code of a request
Get the http status code of a request
as integer
http.isOk
Check if the http response code is a 2xx
...
...
@@ -178,4 +183,4 @@ INSTRUCTION:
Delete a file after http.responseExport.
It is useful if you use the AUTOFILE mechanism.
```
\ No newline at end of file
```
This diff is collapsed.
Click to expand it.
rest-api-client.sh
+
4
−
1
View file @
b2b0fe5c
...
...
@@ -646,8 +646,11 @@ INSTRUCTION:
- check http status code
http.getStatus
Get the http status as string Ok|Redirect|Error
http.getStatuscode
Get the http status code of a request
Get the http status code of a request
as integer
http.isOk
Check if the http response code is a 2xx
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment