I want be able to get token via api. Used for mobile applications
This commit is contained in:
parent
37817cc31d
commit
9aafe77e70
6 changed files with 90 additions and 2 deletions
|
@ -30,6 +30,7 @@ When listing resources you can pass the following parameters:
|
|||
## Contents
|
||||
|
||||
+ [Users](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/users.md)
|
||||
+ [Session](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/session.md)
|
||||
+ [Projects](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/projects.md)
|
||||
+ [Snippets](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/snippets.md)
|
||||
+ [Issues](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/issues.md)
|
||||
|
|
22
doc/api/session.md
Normal file
22
doc/api/session.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
Login to get private token
|
||||
|
||||
```
|
||||
POST /session
|
||||
```
|
||||
|
||||
Parameters:
|
||||
|
||||
+ `email` (required) - The email of user
|
||||
+ `password` (required) - Valid password
|
||||
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 1,
|
||||
"email": "john@example.com",
|
||||
"name": "John Smith",
|
||||
"private_token": "dd34asd13as",
|
||||
"created_at": "2012-05-23T08:00:58Z",
|
||||
"blocked": true
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue