feat: creation of service account (#44913)
* feat: creation of service account * added back button for the details page * refactor: remove unused file, renamed fields * oppps
This commit is contained in:
@@ -71,8 +71,11 @@ func (api *ServiceAccountsAPI) CreateServiceAccount(c *models.ReqContext) respon
|
||||
case err != nil:
|
||||
return response.Error(http.StatusInternalServerError, "Failed to create service account", err)
|
||||
}
|
||||
|
||||
return response.JSON(http.StatusCreated, user)
|
||||
result := models.UserIdDTO{
|
||||
Message: "Service account created",
|
||||
Id: user.Id,
|
||||
}
|
||||
return response.JSON(http.StatusCreated, result)
|
||||
}
|
||||
|
||||
func (api *ServiceAccountsAPI) DeleteServiceAccount(ctx *models.ReqContext) response.Response {
|
||||
|
||||
Reference in New Issue
Block a user