1
0
mirror of https://github.com/rancher/types.git synced 2025-08-01 04:57:05 +00:00

allow gets on individual principals

This commit is contained in:
Craig Jellick 2018-03-01 13:23:33 -07:00
parent b04b5a8fa3
commit b0f08514ba

View File

@ -214,7 +214,7 @@ func authnTypes(schemas *types.Schemas) *types.Schemas {
AddMapperForType(&Version, v3.Principal{}, m.DisplayName{}).
MustImportAndCustomize(&Version, v3.Principal{}, func(schema *types.Schema) {
schema.CollectionMethods = []string{http.MethodGet}
schema.ResourceMethods = []string{}
schema.ResourceMethods = []string{http.MethodGet}
schema.CollectionActions = map[string]types.Action{
"search": {
Input: "searchPrincipalsInput",