Abiquo Documentation Cookies Policy

Our Documentation website uses cookies to improve your experience. Please visit our Cookie Policy page for more information about cookies and how we use them.


Documentation

Skip to end of metadata
Go to start of metadata

Login Resource

Exposed Resources Hierarchy
Login Resource

Contents:

Provides access to the information of the current user.

Main URI of the Resource

This class operates mainly over the Resource URI: /login

Exposed Methods

Get the information of the current user

Get the information of the current user.

Synopsis: GET http://example.com/api/login
Roles Required:
Request Headers: Accept: application/vnd.abiquo.user+json; version=3.8; application/vnd.abiquo.user+xml; version=3.8;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: User Media Type
Request Example:

 Click here to show or hide the request example

API example removed: GET_login_AC_user_j
You can download the API examples archive from ABI38Confluence-space-export-152334-314.html.zip

 

Get authorization token to change password

Creates a token with userName and send an email with the link to reset the password. Set reset password to true

Synopsis: POST http://example.com/api/login/action/newpassword?user=userLogin
Roles Required: ROLE_ANONYMOUS
Request Headers: 
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: 
Request Example:

 Click here to show or hide the request example

API example removed: POST_login_act_newpsw_challenge_user
You can download the API examples archive from ABI38Confluence-space-export-152334-314.html.zip

Get the information of the current user example
$ curl -X POST http://example.com/api/login/action/newpassword?user=testUser  

 

Reset password

Updates user password. Set reset password to false and first_login flag to false.

UserName is taken from ResetPasswordToken.

Synopsis: POST http://example.com/api/login/action/reset?ResetPasswordToken=YToxMzg0NTA2MDUyNTQ0&newpassword=passwordTest
Roles Required: ROLE_RESET_PASSWORD
Request Headers: 
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: 
Request Example:

 Click here to show or hide the request example

API example removed: POST_login_act_reset_resetPwToken_newPw
You can download the API examples archive from ABI38Confluence-space-export-152334-314.html.zip

Get the information of the current user example
$ curl -X POST http://example.com/api/login/action/reset?ResetPasswordToken=YToxMzg0NTA2MDUyNTQ0&newpassword=passwordTest