CLI Java application to provide an API test/client tool.
- Choose and download a release version (ZIP file jurl-X.X.X.zip)
- Decompress ZIP file and test it
rem Windows
jurl -h# Linux
./jurl -h- Set JURL_HOME environment variable based on the location of the jurl-X.X.X.jar
- Add JURL_HOME to PATH enrivonment variable
Windows
Edit the environment variables
| Variable | Value |
|---|---|
| JURL_HOME | jurl JAR location |
| Path | %Path%;%JURL_HOME% |
rem Restart command prompt
jurl -hLinux
Add/modify the environment variables in ~/.bashrc file
vim ~/.bashrc
# vim>
# export JURL_HOME="<jurl-jar-location>"
# export PATH=$PATH:$JURL_HOME
source ~/.bashrc
# Set execution permissions to *jurl* bash file
chmod +x $JURL_HOME/jurl
jurl -hDefine a spec file (no specific extension is required)
pokemon-api
@default-request = pokemon
### [request] pokemon
GET https://pokeapi.co/api/v2/pokemon/{{name}}
output pokemonId = {{OUT/id}}
### [request] encounters
@method = GET
@host = https://pokeapi.co
@basePath = /api/v2
@endpoint = /pokemon/{{pokemonId}}/encounters
### [flow] pokemon-details
step -n pokemon
step -n encounters
Execute request (specified by @default-request)
jurl -s name "gengar" pokemon-apiAccording to the spec, after the request the variable
pokemonIdwill have the ID of the requested Pokémon
Execute a request by name
jurl -n encounters pokemon-apiExecute by selecting a request
jurl pokemon-api1) encounters [request]
2) pokemon [request]
3) pokemon-details [flow]
Select request index [default: 2]>Setup the main output variables
Windows
jurl -es default openEditorCommand "\"%PROGRAMFILES%\Sublime Text\subl.exe\" \"{{:win_separator:HTTP/response.path}}\""
jurl -es default downloadsLocation "%USERPROFILE%\Downloads"Linux
jurl -es default openEditorCommand "/usr/bin/subl \"{{HTTP/response.path}}\""
jurl -es default downloadsLocation "$HOME/Downloads"Sublime Text command can be changed for any other editor command
Follow this project's Contribution guidelines.
Copyright © 2023-2025, Giovanni Farfán B.. Released under the MIT License.