+ rest-shell commands
+
+
+
+ | Command |
+ Description |
+
+
+
+
+ |
+
+ baseUri
+
+ uri
+
+
+ |
+
+ Set the base URI used for this point forward in the session. Relative URIs will be calculated relative
+ to this setting.
+
+ |
+
+
+
+ |
+
+ discover
+
+ --rel
+ rel
+
+
+ path
+
+
+
+ |
+
+ Find out what resources are available at the given URI. If no URI is given, use the baseUri.
+
+ |
+
+
+ |
+
+ follow
+
+ --rel
+ rel
+
+
+ path
+
+
+
+ |
+
+ Set the baseUri to the URI assigned to this given rel or path but do not discover resources.
+
+ |
+
+
+ |
+
+ list
+
+ --rel
+ rel
+
+
+ path
+
+
+ --params
+ JSON
+
+
+ |
+
+ Find out what resources are available at the given URI.
+
+ |
+
+
+ |
+
+ headers set
+ --name
+ name
+
+ --value
+ value
+
+
+ |
+
+ Set an HTTP header for use from this point forward in the session.
+ |
+
+
+ |
+
+ headers clear
+
+ |
+
+ Clear all HTTP headers set during this session.
+ |
+
+
+ |
+
+ headers list
+
+ |
+
+ Print out the currently-set HTTP headers for this session.
+ |
+
+
+ |
+
+ history list
+
+ |
+
+ List the URIs previously set as baseUris during this session.
+ |
+
+
+ |
+
+ history go
+
+ num
+
+
+ |
+
+ Jump to a URI by pulling one from the history.
+ |
+
+
+ |
+
+ var clear
+
+ |
+
+ Clear this shell's variable context.
+ |
+
+
+ |
+
+ var get
+ --name
+ name
+
+ --value
+ expression
+
+
+ |
+
+ Get a variable from this shell's context by name or evaluate a shell expression.
+ |
+
+
+ |
+
+ var list
+
+ |
+
+ List variables currently set in this shell's context.
+ |
+
+
+ |
+
+ var set
+
+ |
+
+ Set a variable in this shell's context.
+ |
+
+
+ |
+
+ up
+
+ |
+
+ Traverse one level up in the URL hierarchy.
+ |
+
+
+ |
+
+ get
+
+ --rel
+ rel
+
+
+ path
+
+
+ --follow true | false
+ --params
+ JSON
+
+ --output
+ filename
+
+
+ |
+
+ HTTP GET from the given path. If
+ --follow true
+ is set, then follow any redirects automatically. If
+ --output filename
+ is set, output the the response into the given file.
+
+ |
+
+
+ |
+
+ post
+
+ |
+
+ HTTP POST to the given path, passing JSON given in the --data parameter.
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+
+