* Add teams/{id}/groups as a custom endpoint
* TeamGroupsHandler OSS and Ent registration
* Update OpenAPI spec
* Add indexer tests for external group mapping
* Remove noopsearch
* Remove unnecessary interface declaration, fixes
* Chores
* fmt
* Rename constant
* Align the rest to the changes of main
* Update workspace
* Add missing file
36 lines
529 B
CUE
36 lines
529 B
CUE
package kinds
|
|
|
|
import (
|
|
"github.com/grafana/grafana/apps/iam/kinds/v0alpha1"
|
|
)
|
|
|
|
teamKind: {
|
|
kind: "Team"
|
|
pluralName: "Teams"
|
|
current: "v0alpha1"
|
|
codegen: {
|
|
ts: { enabled: false }
|
|
go: { enabled: true }
|
|
}
|
|
}
|
|
|
|
teamv0alpha1: teamKind & {
|
|
schema: {
|
|
spec: v0alpha1.TeamSpec
|
|
}
|
|
routes: {
|
|
"/groups": {
|
|
"GET": {
|
|
response: {
|
|
#ExternalGroupMapping: {
|
|
name: string
|
|
externalGroup: string
|
|
}
|
|
items: [...#ExternalGroupMapping]
|
|
}
|
|
responseMetadata: objectMeta: false
|
|
}
|
|
}
|
|
}
|
|
}
|