@@ -24,6 +24,30 @@ const docTemplate = `{
2424 "host": "{{.Host}}",
2525 "basePath": "{{.BasePath}}",
2626 "paths": {
27+ "/.well-known/api-configuration": {
28+ "get": {
29+ "description": "Get service configuration including endpoints, capabilities, and authentication methods",
30+ "consumes": [
31+ "application/json"
32+ ],
33+ "produces": [
34+ "application/json"
35+ ],
36+ "tags": [
37+ "discovery"
38+ ],
39+ "summary": "API configuration",
40+ "responses": {
41+ "200": {
42+ "description": "API configuration",
43+ "schema": {
44+ "type": "object",
45+ "additionalProperties": true
46+ }
47+ }
48+ }
49+ }
50+ },
2751 "/auth": {
2852 "get": {
2953 "description": "Display the authentication page with available providers",
@@ -3009,6 +3033,10 @@ const docTemplate = `{
30093033 "type": "boolean",
30103034 "default": false
30113035 },
3036+ "hostname": {
3037+ "type": "string",
3038+ "default": "localhost"
3039+ },
30123040 "metaData": {
30133041 "description": "Metadata for the environment",
30143042 "allOf": [
@@ -3060,6 +3088,23 @@ const docTemplate = `{
30603088 "Local"
30613089 ]
30623090 },
3091+ "models.Groups": {
3092+ "type": "object",
3093+ "properties": {
3094+ "allow": {
3095+ "type": "array",
3096+ "items": {
3097+ "type": "string"
3098+ }
3099+ },
3100+ "deny": {
3101+ "type": "array",
3102+ "items": {
3103+ "type": "string"
3104+ }
3105+ }
3106+ }
3107+ },
30633108 "models.HealthResponse": {
30643109 "type": "object",
30653110 "properties": {
@@ -3345,7 +3390,16 @@ const docTemplate = `{
33453390 "type": "boolean",
33463391 "default": true
33473392 },
3393+ "groups": {
3394+ "description": "groups to add the user to",
3395+ "allOf": [
3396+ {
3397+ "$ref": "#/definitions/models.Groups"
3398+ }
3399+ ]
3400+ },
33483401 "inherits": {
3402+ "description": "roles to inherit from or provider specific roles/policies etc",
33493403 "type": "array",
33503404 "items": {
33513405 "type": "string"
@@ -3355,19 +3409,35 @@ const docTemplate = `{
33553409 "type": "string"
33563410 },
33573411 "permissions": {
3358- "$ref": "#/definitions/models.Permissions"
3412+ "description": "granular permissions for the role",
3413+ "allOf": [
3414+ {
3415+ "$ref": "#/definitions/models.Permissions"
3416+ }
3417+ ]
33593418 },
33603419 "providers": {
3420+ "description": "providers that can assign this role",
33613421 "type": "array",
33623422 "items": {
33633423 "type": "string"
33643424 }
33653425 },
33663426 "resources": {
3367- "$ref": "#/definitions/models.Resources"
3427+ "description": "resource access rules, apis, files, systems etc",
3428+ "allOf": [
3429+ {
3430+ "$ref": "#/definitions/models.Resources"
3431+ }
3432+ ]
33683433 },
33693434 "scopes": {
3370- "$ref": "#/definitions/models.RoleScopes"
3435+ "description": "scope of who can be assigned this role",
3436+ "allOf": [
3437+ {
3438+ "$ref": "#/definitions/models.RoleScopes"
3439+ }
3440+ ]
33713441 },
33723442 "workflows": {
33733443 "description": "The workflows to execute",
@@ -3396,7 +3466,16 @@ const docTemplate = `{
33963466 "type": "boolean",
33973467 "default": true
33983468 },
3469+ "groups": {
3470+ "description": "groups to add the user to",
3471+ "allOf": [
3472+ {
3473+ "$ref": "#/definitions/models.Groups"
3474+ }
3475+ ]
3476+ },
33993477 "inherits": {
3478+ "description": "roles to inherit from or provider specific roles/policies etc",
34003479 "type": "array",
34013480 "items": {
34023481 "type": "string"
@@ -3406,19 +3485,35 @@ const docTemplate = `{
34063485 "type": "string"
34073486 },
34083487 "permissions": {
3409- "$ref": "#/definitions/models.Permissions"
3488+ "description": "granular permissions for the role",
3489+ "allOf": [
3490+ {
3491+ "$ref": "#/definitions/models.Permissions"
3492+ }
3493+ ]
34103494 },
34113495 "providers": {
3496+ "description": "providers that can assign this role",
34123497 "type": "array",
34133498 "items": {
34143499 "type": "string"
34153500 }
34163501 },
34173502 "resources": {
3418- "$ref": "#/definitions/models.Resources"
3503+ "description": "resource access rules, apis, files, systems etc",
3504+ "allOf": [
3505+ {
3506+ "$ref": "#/definitions/models.Resources"
3507+ }
3508+ ]
34193509 },
34203510 "scopes": {
3421- "$ref": "#/definitions/models.RoleScopes"
3511+ "description": "scope of who can be assigned this role",
3512+ "allOf": [
3513+ {
3514+ "$ref": "#/definitions/models.RoleScopes"
3515+ }
3516+ ]
34223517 },
34233518 "workflows": {
34243519 "description": "The workflows to execute",
@@ -3432,6 +3527,12 @@ const docTemplate = `{
34323527 "models.RoleScopes": {
34333528 "type": "object",
34343529 "properties": {
3530+ "domains": {
3531+ "type": "array",
3532+ "items": {
3533+ "type": "string"
3534+ }
3535+ },
34353536 "groups": {
34363537 "type": "array",
34373538 "items": {
0 commit comments