mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Swagger: Fix response for the search users endpoint (#71272)
* Regenerate OpenAPI specs for fetching the latest changes * Fix swagger annotations for search users API
This commit is contained in:
parent
fd90737884
commit
32ff712e98
@ -627,13 +627,6 @@ type UpdateUserParams struct {
|
||||
UserID int64 `json:"user_id"`
|
||||
}
|
||||
|
||||
// swagger:response searchUsersResponse
|
||||
type SearchUsersResponse struct {
|
||||
// The response message
|
||||
// in: body
|
||||
Body user.SearchUserQueryResult `json:"body"`
|
||||
}
|
||||
|
||||
// swagger:response userResponse
|
||||
type UserResponse struct {
|
||||
// The response message
|
||||
|
@ -53,7 +53,7 @@ func (s *OSSService) SearchUsers(c *contextmodel.ReqContext) response.Response {
|
||||
// Get users with paging.
|
||||
//
|
||||
// Responses:
|
||||
// 200: searchUsersResponse
|
||||
// 200: searchUsersWithPagingResponse
|
||||
// 401: unauthorisedError
|
||||
// 403: forbiddenError
|
||||
// 404: notFoundError
|
||||
@ -115,3 +115,17 @@ func (s *OSSService) SearchUser(c *contextmodel.ReqContext) (*user.SearchUserQue
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
||||
// swagger:response searchUsersResponse
|
||||
type SearchUsersResponse struct {
|
||||
// The response message
|
||||
// in: body
|
||||
Body []*user.UserSearchHitDTO `json:"body"`
|
||||
}
|
||||
|
||||
// swagger:response searchUsersWithPagingResponse
|
||||
type SearchUsersWithPagingResponse struct {
|
||||
// The response message
|
||||
// in: body
|
||||
Body *user.SearchUserQueryResult `json:"body"`
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
3503
public/openapi3.json
3503
public/openapi3.json
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user