{ "openapi": "3.0.0", "info": { "title": "public/portworx/platform/whoami/apiv1/whoami.proto", "version": "version not set" }, "tags": [ { "name": "WhoAmIService" } ], "paths": { "/core/v1/whoami": { "get": { "summary": "WhoAmI API returns the current actor accounts.", "operationId": "WhoAmIService_WhoAmI", "responses": { "200": { "description": "A successful response.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/v1WhoAmIResponse" } } } }, "default": { "description": "An unexpected error response.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/rpcStatus" } } } } }, "tags": [ "WhoAmIService" ] } }, "/core/v1/whoami:invitations": { "get": { "summary": "InvitationsWhoAmI API returns the current actor pending invitations cross accounts.", "operationId": "WhoAmIService_InvitationsWhoAmI", "responses": { "200": { "description": "A successful response.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/v1WhoAmIResponse" } } } }, "default": { "description": "An unexpected error response.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/rpcStatus" } } } } }, "tags": [ "WhoAmIService" ] } } }, "components": { "schemas": { "protobufAny": { "type": "object", "properties": { "@type": { "type": "string" } }, "additionalProperties": {} }, "rpcStatus": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string" }, "details": { "type": "array", "items": { "$ref": "#/components/schemas/protobufAny" } } } }, "v1Account": { "type": "object", "properties": { "id": { "type": "string", "description": "Id of an account." }, "dnsName": { "type": "string", "description": "Account DNS name." }, "name": { "type": "string", "description": "Name of Account." } }, "description": "Account details in WhoAmI Response." }, "v1WhoAmIResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "id of current actor." }, "email": { "type": "string", "description": "email of current actor." }, "accounts": { "type": "array", "items": { "$ref": "#/components/schemas/v1Account" }, "description": "accounts of current actor." } }, "description": "WhoAmI response return accounts for current actor." } } } }