Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,59 @@
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/previewStaticSiteWorkflowFile": {
"post": {
"tags": [
"StaticSites"
],
"summary": "Generates a preview workflow file for the static site",
"description": "Description for Generates a preview workflow file for the static site",
"operationId": "StaticSites_PreviewWorkflow",
"parameters": [
{
"name": "location",
"in": "path",
"description": "Location where you plan to create the static site.",
"required": true,
"type": "string"
},
{
"name": "staticSitesWorkflowPreviewRequest",
"in": "body",
"description": "A JSON representation of the StaticSitesWorkflowPreviewRequest properties. See example.",
"required": true,
"schema": {
"$ref": "#/definitions/StaticSitesWorkflowPreviewRequest"
}
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/StaticSitesWorkflowPreview"
}
},
"default": {
"description": "App Service error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Generates a preview workflow file for the static site": {
"$ref": "./examples/GenerateStaticSiteWorkflowPreview.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/staticSites": {
"get": {
"tags": [
Expand Down Expand Up @@ -1866,6 +1919,62 @@
"x-ms-client-flatten": true
}
}
},
"StaticSitesWorkflowPreview": {
"description": "Preview for the Static Site Workflow to be generated",
"type": "object",
"allOf": [
{
"$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"description": "StaticSitesWorkflowPreview resource specific properties",
"properties": {
"path": {
"description": "The path for the workflow file to be generated",
"type": "string",
"readOnly": true
},
"contents": {
"description": "The contents for the workflow file to be generated",
"type": "string",
"readOnly": true
}
},
"x-ms-client-flatten": true
}
}
},
"StaticSitesWorkflowPreviewRequest": {
"description": "Request entity for previewing the Static Site workflow",
"type": "object",
"allOf": [
{
"$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"description": "StaticSitesWorkflowPreviewRequest resource specific properties",
"properties": {
"repositoryUrl": {
"description": "URL for the repository of the static site.",
"type": "string"
},
"branch": {
"description": "The target branch in the repository.",
"type": "string"
},
"buildProperties": {
"$ref": "#/definitions/StaticSiteBuildProperties",
"description": "Build properties to configure on the repository."
}
},
"x-ms-client-flatten": true
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"location": "West US 2",
"api-version": "2020-06-01",
"staticSitesWorkflowPreviewRequest": {
"properties": {
"repositoryUrl": "https://github.com/username/RepoName",
"branch": "master",
"buildProperties": {
"appLocation": "app",
"apiLocation": "api",
"appArtifactLocation": "build"
}
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"properties": {
"path": ".github/workflows/azure-static-web-apps-<generated_hostname>.yml",
"contents": "base64encodedworkflowcontentspreview"
}
}
}
}
}