diff --git a/master.rest b/master.rest index 7ec0e6e..d38e5c4 100644 --- a/master.rest +++ b/master.rest @@ -359,7 +359,7 @@ metadata: organization: :org spec: isGlobal: true - scope: cluster + scope: system # Create role POST :host/auth/v3/partner/:partner/organization/:org/roles @@ -414,4 +414,44 @@ Content-Type: application/yaml ## Audit # Audit by project -GET :host/event/v1/auditlog?filter.timefrom=now-1h \ No newline at end of file +GET :host/event/v1/auditlog?filter.timefrom=now-1h + +## Partner + +# Create partner +POST :host/auth/v3/partner +Content-Type: application/yaml + +metadata: + name: :partner + description: "A very important partner" +spec: + host: "https://important.org" + +# List organizations +GET :host/auth/v3/partner/:partner/organizations + +# Create organization +POST :host/auth/v3/partner/:partner/organization +Content-Type: application/yaml + +metadata: + partner: :partner + name: :org + description: "Very first organization" +spec: + active: true + +# Create project +POST :host/auth/v3/partner/:partner/organization/:org/project +Content-Type: application/yaml + +metadata: + name: :project + description: "Very first project" +spec: + active: true + +# Delete project +DELETE :host/auth/v3/partner/:partner/organization/:org/project/:project +