2014-05-27 08:12:15 -04:00
|
|
|
# Session
|
|
|
|
|
2012-09-20 10:44:44 -04:00
|
|
|
Login to get private token
|
|
|
|
|
|
|
|
```
|
|
|
|
POST /session
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2013-07-16 04:50:00 -04:00
|
|
|
+ `login` (required) - The login of user
|
|
|
|
+ `email` (required if login missing) - The email of user
|
2012-09-20 10:44:44 -04:00
|
|
|
+ `password` (required) - Valid password
|
|
|
|
|
|
|
|
|
2013-07-16 04:50:00 -04:00
|
|
|
__You can login with both GitLab and LDAP credentials now__
|
|
|
|
|
2012-09-20 10:44:44 -04:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": 1,
|
2012-12-10 17:46:31 -05:00
|
|
|
"username": "john_smith",
|
2012-09-20 10:44:44 -04:00
|
|
|
"email": "john@example.com",
|
|
|
|
"name": "John Smith",
|
|
|
|
"private_token": "dd34asd13as",
|
2013-03-18 17:06:24 -04:00
|
|
|
"blocked": false,
|
2012-09-20 10:44:44 -04:00
|
|
|
"created_at": "2012-05-23T08:00:58Z",
|
2013-03-18 17:06:24 -04:00
|
|
|
"bio": null,
|
|
|
|
"skype": "",
|
|
|
|
"linkedin": "",
|
|
|
|
"twitter": "",
|
2014-01-18 14:07:00 -05:00
|
|
|
"website_url": "",
|
2013-03-18 17:06:24 -04:00
|
|
|
"dark_scheme": false,
|
2013-08-30 15:04:26 -04:00
|
|
|
"theme_id": 1,
|
2013-03-18 17:06:24 -04:00
|
|
|
"is_admin": false,
|
2014-04-05 02:36:47 -04:00
|
|
|
"can_create_group": true,
|
|
|
|
"can_create_team": true,
|
|
|
|
"can_create_project": true
|
2012-09-20 10:44:44 -04:00
|
|
|
}
|
|
|
|
```
|