diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-31 14:35:32 +0200 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-07-31 16:39:51 -0400 |
commit | 8802846565f382f4bf21ff7e08a4e9c459bb10d6 (patch) | |
tree | 34ec33dc45a816157eaddfc536c710969757fe9f | |
parent | 51e5f379dd69837d3405c78e5ef6ce3727939f3c (diff) | |
download | gitlab-ce-8802846565f382f4bf21ff7e08a4e9c459bb10d6.tar.gz |
Fix indentation
-rw-r--r-- | lib/api/users.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index bd8cc9f16a8..ee29f952246 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -131,11 +131,11 @@ module API # Add ssh key to a specified user. Only available to admin users. # # Parameters: - # id (required) - The ID of a user - # key (required) - New SSH Key - # title (required) - New SSH Key's title + # id (required) - The ID of a user + # key (required) - New SSH Key + # title (required) - New SSH Key's title # Example Request: - # POST /users/:id/keys + # POST /users/:id/keys post ":id/keys" do authenticated_as_admin! required_attributes! [:title, :key] @@ -153,9 +153,9 @@ module API # Get ssh keys of a specified user. Only available to admin users. # # Parameters: - # uid (required) - The ID of a user + # uid (required) - The ID of a user # Example Request: - # GET /users/:uid/keys + # GET /users/:uid/keys get ':uid/keys' do authenticated_as_admin! user = User.find_by(id: params[:uid]) @@ -188,10 +188,10 @@ module API # Add email to a specified user. Only available to admin users. # # Parameters: - # id (required) - The ID of a user - # email (required) - Email address + # id (required) - The ID of a user + # email (required) - Email address # Example Request: - # POST /users/:id/emails + # POST /users/:id/emails post ":id/emails" do authenticated_as_admin! required_attributes! [:email] @@ -210,9 +210,9 @@ module API # Get emails of a specified user. Only available to admin users. # # Parameters: - # uid (required) - The ID of a user + # uid (required) - The ID of a user # Example Request: - # GET /users/:uid/emails + # GET /users/:uid/emails get ':uid/emails' do authenticated_as_admin! user = User.find_by(id: params[:uid]) |