Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Akamu
Game Server Go
Commits
c0c36be5
Commit
c0c36be5
authored
Dec 24, 2020
by
MaxGranzow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation for user search endpoint
parent
2cc99009
Pipeline
#2234
passed with stage
in 3 minutes and 21 seconds
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
appapi.yaml
appapi.yaml
+2
-2
endpoint/user/query.go
endpoint/user/query.go
+1
-1
No files found.
appapi.yaml
View file @
c0c36be5
...
...
@@ -87,9 +87,9 @@ paths:
get
:
summary
:
Search for users by their username.
description
:
>-
Returns an array of objects representing the app users,
Returns an array of objects representing the
verified
app users,
whose usernames start with the search term.
Cas
e
ing is ignored.
Casing is ignored.
The user objects are stripped down to what is necessary
to know as an app user.
parameters
:
...
...
endpoint/user/query.go
View file @
c0c36be5
...
...
@@ -333,7 +333,7 @@ func (MySQLUserQuery) SelectByUsername(username string) ([]schemas.InfoUserSchem
return
user
,
nil
}
// SelectByUsernameLike fetches and returns a list of userdata of all users with matching usernames
// SelectByUsernameLike fetches and returns a list of userdata of all
verified
users with matching usernames
func
(
MySQLUserQuery
)
SelectByUsernameLike
(
username
string
)
([]
schemas
.
InfoUserSchema
,
error
)
{
db
,
connectionError
:=
dbhandler
.
GetDBConnection
()
if
connectionError
!=
nil
{
...
...
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