You are in REST API » v12.0 || Go to
Authentication
Login:
- URL:
/doLogin
- Method: POST
- Parameters:
login
- user login, ‘anonymous’ can be used for accessing API with guest account access levelpassword
- user password, for guest account this field is optional
- Output. If login operation is successful then
MINERVA_AUTH_TOKEN
cookie will be created with authentication token. If credentials are invalid response with403
status code will be returned. Token will be valid for the next 120 minutes. - Example:
curl -X POST -c - --data "login=anonymous&password=" \ https://minerva-dev.lcsb.uni.lu/minerva/api/doLogin
Logout:
- URL:
/doLogout
- Method: POST
- Parameters: NONE
- Example:
curl -X POST --data "" --cookie "MINERVA_AUTH_TOKEN=xxxxxx" \ https://minerva-dev.lcsb.uni.lu/minerva/api/doLogout