Scripts to make it easy to ask authenticated GET queries of an ESB with the IBM api manager and WSO2 backend.
These scripts assume input is a GET request and output is in json format. It uses jq to format the output.
authentication - The scripts expect to find credentials in the file credentials in the current directory. Use symbolic links to keep multiple different credential files in the same directory. See the file credentials.TEMPLATE for more information.
- getApiToken.sh - Use the credentials to get an up-to-date access token. Just append it to the credentials file to make the token available to the run script. E.g.
./getApiToken.sh >> credentials
- runApiRequest.sh - Run a query using the current credentials. The command line parameter is the tail end of the url request. The prefix for the url can be stored in the credentials file.
Nice! Since "README.md" appears as the title of your gist, you might want to rename it to something like "UMich-ESB-bash.md".