{ "swagger": "2.0", "info": { "version": "2023-01-01-preview", "title": "portal", "description": "Allows creation and deletion of Azure portal extensions." }, "host": "management.azure.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow", "scopes": { "user_impersonation": "impersonate your user account" } } }, "paths": { "/providers/Microsoft.PortalServices/operations": { "get": { "tags": [ "Operations" ], "description": "Lists all of the available Portal Services RP operations.", "operationId": "Operations_List", "x-ms-examples": { "List available operations": { "$ref": "examples/OperationsList.json" } }, "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK - The request has succeeded.", "schema": { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/providers/Microsoft.PortalServices/compilefile": { "post": { "tags": [ "PortalTenant" ], "operationId": "PortalTenant_CompileFile", "x-ms-examples": { "Compile single file using inline content": { "$ref": "examples/portalTenantCompileFile.json" } }, "description": "compiles a file using inline content.", "parameters": [ { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { "name": "portalTenantCompileFile", "in": "body", "required": true, "schema": { "$ref": "#/definitions/PortalTenantCompileFile" }, "description": "The parameters required to compile a file." } ], "responses": { "200": { "description": "OK - Returns the runtime configuration of the file.", "schema": { "$ref": "#/definitions/PortalTenantCompileFileResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "produces": [ "application/json" ], "consumes": [ "application/json" ] } } }, "definitions": { "PortalTenantCompileFileResult": { "type": "object", "description": "The runtime result of source compilation", "additionalProperties": true }, "PortalTenantCompileFile": { "type": "object", "description": "The contents of the file to compile.", "properties": { "contents": { "type": "object", "description": "The contents of the file." }, "stringSource": { "type": "object", "description": "The contents of the string source." }, "files": { "type": "object", "description": "The contents of referenced files. The property name is the relative file path and the value is its contents." } }, "required": [ "contents" ] } }, "parameters": {} }