7.4.1 Login
HTTP Request: POST https://localhost:7007/ui/v1/login/
Authentication: Uses cookie-based authentication.
Table 7-2 Parameters
Parameter | Parameter Type | Value | Required |
---|---|---|---|
Content-type |
Header | application/json |
Yes |
username |
Body | <username> |
Yes |
password |
Body | <password> |
Yes |
baseUrl |
Body | <baseUrl> to point to the graph
server (PGX) or the database
|
Optional. If empty, Graph Visualization will use the
pgx.base_url parameter value in the
web.xml file.
|
pgqlDriver |
Body | Valid PGQL driver configuration values are:
|
Yes |
sessionId |
Body | sessionId from graph server
(PGX)
|
Optional |
Request
The following curl
command signs the user in to the Graph Visualization application:
curl --cacert /etc/oracle/graph/ca_certificate.pem -c cookie.txt -X POST -H "Content-Type: application/json" -d '{"username": "<username>", "password": "<password>", "pgqlDriver": "<pgqlDriver>","baseUrl": "<baseUrl>", "sessionId": "<sessionId>" }' https://localhost:7007/ui/v1/login/
Response: The
username
used for the login. For
example:"oracle"
On successful login, the server session cookie is stored in a cookie file, cookie.txt
. Use this cookie file, in the subsequent calls to the API.
Parent topic: REST Endpoints for the Graph Visualization Application