Commit c0c36be5 authored by MaxGranzow's avatar MaxGranzow

Update documentation for user search endpoint

parent 2cc99009
Pipeline #2234 passed with stage
in 3 minutes and 21 seconds
...@@ -87,9 +87,9 @@ paths: ...@@ -87,9 +87,9 @@ paths:
get: get:
summary: Search for users by their username. summary: Search for users by their username.
description: >- 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. whose usernames start with the search term.
Caseing is ignored. Casing is ignored.
The user objects are stripped down to what is necessary The user objects are stripped down to what is necessary
to know as an app user. to know as an app user.
parameters: parameters:
......
...@@ -333,7 +333,7 @@ func (MySQLUserQuery) SelectByUsername(username string) ([]schemas.InfoUserSchem ...@@ -333,7 +333,7 @@ func (MySQLUserQuery) SelectByUsername(username string) ([]schemas.InfoUserSchem
return user, nil 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) { func (MySQLUserQuery) SelectByUsernameLike(username string) ([]schemas.InfoUserSchema, error) {
db, connectionError := dbhandler.GetDBConnection() db, connectionError := dbhandler.GetDBConnection()
if connectionError != nil { if connectionError != nil {
......
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