Skip to content

Instantly share code, notes, and snippets.

@joshlong
Last active December 15, 2015 01:59
Show Gist options
  • Select an option

  • Save joshlong/5183827 to your computer and use it in GitHub Desktop.

Select an option

Save joshlong/5183827 to your computer and use it in GitHub Desktop.
rest shell 4
http://localhost:8080/api//users:> headers set --name Accept --value application/json
{
"Accept" : "application/json"
}
http://localhost:8080/api//users:> get /users/72
> GET http://localhost:8080/api//users/72
> Accept: application/json
< 200 OK
< Server: Apache-Coyote/1.1
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Sat, 16 Mar 2013 00:31:28 GMT
<
{
"id" : 72,
"customers" : null,
"importedFromServiceProvider" : false,
"firstName" : "Jane",
"lastName" : "Smith",
"username" : "user@user.com",
"password" : "password",
"profilePhotoImported" : true,
"profilePhotoExt" : null,
"enabled" : true,
"signupDate" : 1363129646993
}
http://localhost:8080/api//users:>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment