Commit 88028465 authored by Douwe Maan's avatar Douwe Maan Committed by Robert Speicher

Fix indentation

parent 51e5f379
...@@ -131,11 +131,11 @@ module API ...@@ -131,11 +131,11 @@ module API
# Add ssh key to a specified user. Only available to admin users. # Add ssh key to a specified user. Only available to admin users.
# #
# Parameters: # Parameters:
# id (required) - The ID of a user # id (required) - The ID of a user
# key (required) - New SSH Key # key (required) - New SSH Key
# title (required) - New SSH Key's title # title (required) - New SSH Key's title
# Example Request: # Example Request:
# POST /users/:id/keys # POST /users/:id/keys
post ":id/keys" do post ":id/keys" do
authenticated_as_admin! authenticated_as_admin!
required_attributes! [:title, :key] required_attributes! [:title, :key]
...@@ -153,9 +153,9 @@ module API ...@@ -153,9 +153,9 @@ module API
# Get ssh keys of a specified user. Only available to admin users. # Get ssh keys of a specified user. Only available to admin users.
# #
# Parameters: # Parameters:
# uid (required) - The ID of a user # uid (required) - The ID of a user
# Example Request: # Example Request:
# GET /users/:uid/keys # GET /users/:uid/keys
get ':uid/keys' do get ':uid/keys' do
authenticated_as_admin! authenticated_as_admin!
user = User.find_by(id: params[:uid]) user = User.find_by(id: params[:uid])
...@@ -188,10 +188,10 @@ module API ...@@ -188,10 +188,10 @@ module API
# Add email to a specified user. Only available to admin users. # Add email to a specified user. Only available to admin users.
# #
# Parameters: # Parameters:
# id (required) - The ID of a user # id (required) - The ID of a user
# email (required) - Email address # email (required) - Email address
# Example Request: # Example Request:
# POST /users/:id/emails # POST /users/:id/emails
post ":id/emails" do post ":id/emails" do
authenticated_as_admin! authenticated_as_admin!
required_attributes! [:email] required_attributes! [:email]
...@@ -210,9 +210,9 @@ module API ...@@ -210,9 +210,9 @@ module API
# Get emails of a specified user. Only available to admin users. # Get emails of a specified user. Only available to admin users.
# #
# Parameters: # Parameters:
# uid (required) - The ID of a user # uid (required) - The ID of a user
# Example Request: # Example Request:
# GET /users/:uid/emails # GET /users/:uid/emails
get ':uid/emails' do get ':uid/emails' do
authenticated_as_admin! authenticated_as_admin!
user = User.find_by(id: params[:uid]) user = User.find_by(id: params[:uid])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment