Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Game Server Go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Akamu
Game Server Go
Commits
161a15b9
Commit
161a15b9
authored
Dec 30, 2020
by
MaxGranzow
Committed by
Julien Schröter
Jan 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add API specification for user recommendation endpoint
parent
4330a1b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
appapi.yaml
appapi.yaml
+51
-0
No files found.
appapi.yaml
View file @
161a15b9
...
...
@@ -83,6 +83,57 @@ paths:
application/json
:
schema
:
$ref
:
'
#/components/schemas/error'
'
/user/recommended'
:
get
:
summary
:
Get user recommendations.
description
:
>-
Returns an array of objects representing verified users that
are not friends of the accessing user and not the user.
Optionally the maximum number of results can be specified.
The default number of recommendations is three.
At most ten users are returned at once.
The user objects are stripped down to what is necessary
to know as an app user.
parameters
:
-
name
:
c
description
:
The number of recommendations to return. Default is three.
in
:
query
required
:
false
schema
:
type
:
number
responses
:
'
200'
:
description
:
Success
content
:
application/json
:
schema
:
type
:
array
items
:
$ref
:
'
#/components/schemas/userinfo'
'
400'
:
description
:
Result count is no number.
content
:
application/json
:
schema
:
$ref
:
'
#/components/schemas/input-error'
'
401'
:
description
:
Authentication failure.
content
:
text/plain
:
schema
:
type
:
string
'
500'
:
description
:
The server cannot deliver due to an internal error.
content
:
application/json
:
schema
:
$ref
:
'
#/components/schemas/internal-error'
default
:
description
:
Some unexpected error.
content
:
application/json
:
schema
:
$ref
:
'
#/components/schemas/error'
'
/user/search'
:
get
:
summary
:
Search for users by their username.
...
...
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