Web Services
This command is for advanced users wanting to directly access to the REST API of Agate server.
agate rest ws <CREDENTIALS> [OPTIONS] [EXTRA]
Arguments
Argument |
Description |
---|---|
|
Web service path, for instance: /user/xxx |
Credentials
Authentication is done by username/password credentials.
Option |
Description |
---|---|
|
Agate server base url. |
|
User name. User with appropriate permissions is expected depending of the REST resource requested. |
|
User password. |
Options
Option |
Description |
---|---|
|
HTTP method: GET (default), POST, PUT, DELETE, OPTIONS. |
|
Accept header (default is application/json). |
|
Content-Type header (default is application/json). |
|
Pretty JSON formatting of the response. |
Extras
Option |
Description |
---|---|
|
Show the command help’s message |
|
Verbose output |
Example
Get all users.
agate rest -ag http://localhost:8081 -u administrator -p password -j /users