Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
1be79e8e
Commit
1be79e8e
authored
Sep 03, 2015
by
Artem V. Navrotskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move get user by ID of an SSH key documentation to separate file
parent
8ec59bd1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
45 deletions
+47
-45
doc/api/README.md
doc/api/README.md
+1
-0
doc/api/keys.md
doc/api/keys.md
+46
-0
doc/api/users.md
doc/api/users.md
+0
-45
No files found.
doc/api/README.md
View file @
1be79e8e
...
...
@@ -21,6 +21,7 @@
-
[
Groups
](
groups.md
)
-
[
Namespaces
](
namespaces.md
)
-
[
Settings
](
settings.md
)
-
[
Keys
](
keys.md
)
## Clients
...
...
doc/api/keys.md
0 → 100644
View file @
1be79e8e
# Keys
## Get SSH key with user by ID of an SSH key
Get SSH key with user by ID of an SSH key. Note only administrators can lookup SSH key with user by ID of an SSH key.
```
GET /keys/:id
```
Parameters:
-
`id`
(required) - The ID of an SSH key
```
json
{
"id"
:
1
,
"title"
:
"Sample key 25"
,
"key"
:
"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1256k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0="
,
"created_at"
:
"2015-09-03T07:24:44.627Z"
,
"user"
:
{
"name"
:
"John Smith"
,
"username"
:
"john_smith"
,
"id"
:
25
,
"state"
:
"active"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/cfa35b8cd2ec278026357769582fa563?s=40
\u
0026d=identicon"
,
"web_url"
:
"http://localhost:3000/u/john_smith"
,
"created_at"
:
"2015-09-03T07:24:01.670Z"
,
"is_admin"
:
false
,
"bio"
:
null
,
"skype"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"website_url"
:
""
,
"email"
:
"john@example.com"
,
"theme_id"
:
2
,
"color_scheme_id"
:
1
,
"projects_limit"
:
10
,
"current_sign_in_at"
:
null
,
"identities"
:
[],
"can_create_group"
:
true
,
"can_create_project"
:
true
,
"two_factor_enabled"
:
false
}
}
```
doc/api/users.md
View file @
1be79e8e
...
...
@@ -150,51 +150,6 @@ Parameters:
}
```
### Get SSH key with user by ID of an SSH key
Get SSH key with user by ID of an SSH key. Note only administrators can lookup SSH key with user by ID of an SSH key.
```
GET /keys/:id
```
Parameters:
-
`id`
(required) - The ID of an SSH key
```
json
{
"id"
:
1
,
"title"
:
"Sample key 25"
,
"key"
:
"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1256k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0="
,
"created_at"
:
"2015-09-03T07:24:44.627Z"
,
"user"
:
{
"name"
:
"John Smith"
,
"username"
:
"john_smith"
,
"id"
:
25
,
"state"
:
"active"
,
"avatar_url"
:
"http://www.gravatar.com/avatar/cfa35b8cd2ec278026357769582fa563?s=40
\u
0026d=identicon"
,
"web_url"
:
"http://localhost:3000/u/john_smith"
,
"created_at"
:
"2015-09-03T07:24:01.670Z"
,
"is_admin"
:
false
,
"bio"
:
null
,
"skype"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"website_url"
:
""
,
"email"
:
"john@example.com"
,
"theme_id"
:
2
,
"color_scheme_id"
:
1
,
"projects_limit"
:
10
,
"current_sign_in_at"
:
null
,
"identities"
:
[],
"can_create_group"
:
true
,
"can_create_project"
:
true
,
"two_factor_enabled"
:
false
}
}
```
## User creation
Creates a new user. Note only administrators can create new users.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment