Nuclos REST login: POST, JSON, username, password, JSESSIONID, cookie, 401, logout, DELETE, session. |
Language: Deutsch · English
Authenticate at the REST service – POST with JSON credentials, JSESSIONID cookie and logout via DELETE.
Auf dieser Seite |
Log in via POST to the root URL of the REST service (http://localhost:8080/nuclos-war/rest/). User name and password are passed as JSON.
{"username": "nuclos", "password": ""} |
Required headers:
Accept: application/json Content-Type: application/json |
The response is a JSON object with the entry links (e.g. boMetas, menu).
All services (except a few such as login) require a valid session ID – otherwise the service responds with HTTP 401 (Unauthorized). The session ID is passed as the cookie JSESSIONID=xxx.
In Nuclos 4.4.x/4.5.x the header |
Same URL as login, via DELETE – invalidates the session ID (HTTP 200 if it was valid).