I want be able to get token via api. Used for mobile applications

This commit is contained in:
Dmitriy Zaporozhets 2012-09-20 17:44:44 +03:00
parent 37817cc31d
commit 9aafe77e70
6 changed files with 90 additions and 2 deletions

View file

@ -9,6 +9,10 @@ module Gitlab
expose :id, :email, :name, :blocked, :created_at
end
class UserLogin < Grape::Entity
expose :id, :email, :name, :private_token, :blocked, :created_at
end
class Hook < Grape::Entity
expose :id, :url
end
@ -52,8 +56,8 @@ module Gitlab
end
class Key < Grape::Entity
expose :id,
:title,
expose :id,
:title,
:key
end
end