From 2b6da59d987ff3529b4a429986a8556875241ae4 Mon Sep 17 00:00:00 2001 From: uvttest2603 <48937014+uvttest2603@users.noreply.github.com> Date: Thu, 11 Apr 2019 11:05:20 +0530 Subject: [PATCH 1/7] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..d6f40c5 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,17 @@ +# ASP.NET Core +# Build and test ASP.NET Core projects targeting .NET Core. +# Add steps that run tests, create a NuGet package, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- master + +pool: + vmImage: 'Ubuntu-16.04' + +variables: + buildConfiguration: 'Release' + +steps: +- script: dotnet build --configuration $(buildConfiguration) + displayName: 'dotnet build $(buildConfiguration)' From 4a6374b1740c678bacdc0a09a426a4f08e2c5115 Mon Sep 17 00:00:00 2001 From: uvttest2603 <48937014+uvttest2603@users.noreply.github.com> Date: Tue, 16 Apr 2019 10:47:20 +0530 Subject: [PATCH 2/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8b78c83..4e491ba 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Beautiful REST API design with ASP.NET Core and Ion +#test Hello! :wave: This repository contains an example API written in C# and ASP.NET Core 1.1. It uses the [Ion hypermedia specification][ion] as a starting point to model a consistent, clean REST API that embraces HATEOAS. From 0c624f7c0bdf20b4a476e0611b2afda3e71929e6 Mon Sep 17 00:00:00 2001 From: uvttest2603 <48937014+uvttest2603@users.noreply.github.com> Date: Tue, 16 Apr 2019 10:50:25 +0530 Subject: [PATCH 3/7] Add files via upload --- test.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..ad3f9ab --- /dev/null +++ b/test.py @@ -0,0 +1,8 @@ +import sys + + + +x = "Python program testing" +print(x) +print(sys.argv[1]) + From be696c066bf3b2dbd3b9d8c8aea83a81d2621277 Mon Sep 17 00:00:00 2001 From: uvttest2603 <48937014+uvttest2603@users.noreply.github.com> Date: Tue, 16 Apr 2019 12:45:52 +0530 Subject: [PATCH 4/7] Delete test.py --- test.py | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 test.py diff --git a/test.py b/test.py deleted file mode 100644 index ad3f9ab..0000000 --- a/test.py +++ /dev/null @@ -1,8 +0,0 @@ -import sys - - - -x = "Python program testing" -print(x) -print(sys.argv[1]) - From 71142319f17c5f5faf92c69ab9f1add37e3f1e0a Mon Sep 17 00:00:00 2001 From: uvttest2603 <48937014+uvttest2603@users.noreply.github.com> Date: Tue, 16 Apr 2019 17:41:08 +0530 Subject: [PATCH 5/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4e491ba..51adaae 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Beautiful REST API design with ASP.NET Core and Ion -#test + Hello! :wave: This repository contains an example API written in C# and ASP.NET Core 1.1. It uses the [Ion hypermedia specification][ion] as a starting point to model a consistent, clean REST API that embraces HATEOAS. From 170e50ee6cda6a973b7a8a27c416a7d213752d00 Mon Sep 17 00:00:00 2001 From: SREEJITH P <41101572+sreejithuvt@users.noreply.github.com> Date: Tue, 16 Apr 2019 17:52:10 +0530 Subject: [PATCH 6/7] Create container-webapp-template.json --- container-webapp-template.json | 125 +++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 container-webapp-template.json diff --git a/container-webapp-template.json b/container-webapp-template.json new file mode 100644 index 0000000..7fecd06 --- /dev/null +++ b/container-webapp-template.json @@ -0,0 +1,125 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "webAppName": { + "type": "String" + }, + "hostingPlanName": { + "type": "String" + }, + "appInsightsLocation": { + "type": "String" + }, + "sku": { + "defaultValue": "Standard", + "type": "String" + }, + "registryName": { + "type": "String" + }, + "imageName": { + "type":"String" + }, + "registryLocation": { + "type": "String" + }, + "registrySku": { + "defaultValue": "Standard", + "type": "String" + }, + "startupCommand": { + "defaultValue": "", + "type": "String" + } + }, + "resources": [ + { + "type": "Microsoft.Web/sites", + "name": "[parameters('webAppName')]", + "apiVersion": "2016-03-01", + "location": "[resourceGroup().location]", + "tags": { + "[concat('hidden-related:', '/subscriptions/', subscription().subscriptionId,'/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty" + }, + "properties": { + "name": "[parameters('webAppName')]", + "siteConfig": { + "appSettings": [ + { + "name": "DOCKER_REGISTRY_SERVER_URL", + "value": "[concat('https://', reference(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName'))).loginServer)]" + }, + { + "name": "DOCKER_REGISTRY_SERVER_USERNAME", + "value": "[listCredentials(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName')), '2017-10-01').username]" + }, + { + "name": "DOCKER_REGISTRY_SERVER_PASSWORD", + "value": "[listCredentials(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName')), '2017-10-01').passwords[0].value]" + }, + { + "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE", + "value": "false" + }, + { + "name": "APPINSIGHTS_INSTRUMENTATIONKEY", + "value": "[reference(resourceId('microsoft.insights/components/', parameters('webAppName')), '2015-05-01').InstrumentationKey]" + } + ], + "appCommandLine": "[parameters('startupCommand')]", + "linuxFxVersion": "[concat('DOCKER|', reference(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName'))).loginServer, '/', parameters('imageName'))]" + }, + "serverFarmId": "[concat('/subscriptions/', subscription().subscriptionId,'/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]", + "hostingEnvironment": "" + }, + "dependsOn": [ + "[concat('Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]", + "[resourceId('microsoft.insights/components/', parameters('webAppName'))]" + ] + }, + { + "type": "Microsoft.ContainerRegistry/registries", + "sku": { + "name": "[parameters('registrySku')]" + }, + "name": "[parameters('registryName')]", + "apiVersion": "2017-10-01", + "location": "[parameters('registryLocation')]", + "properties": { + "adminUserEnabled": "true" + } + }, + { + "type": "Microsoft.Web/serverfarms", + "sku": { + "Tier": "[first(skip(split(parameters('sku'), ' '), 1))]", + "Name": "[first(split(parameters('sku'), ' '))]" + }, + "kind": "linux", + "name": "[parameters('hostingPlanName')]", + "apiVersion": "2016-09-01", + "location": "[resourceGroup().location]", + "properties": { + "name": "[parameters('hostingPlanName')]", + "workerSizeId": "0", + "reserved": true, + "numberOfWorkers": "1", + "hostingEnvironment": "" + } + }, + { + "type": "Microsoft.Insights/components", + "name": "[parameters('webAppName')]", + "apiVersion": "2014-04-01", + "location": "[parameters('appInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceGroup().id, '/providers/Microsoft.Web/sites/', parameters('webAppName'))]": "Resource" + }, + "properties": { + "applicationId": "[parameters('webAppName')]", + "Request_Source": "AzureTfsExtensionAzureProject" + } + } + ] +} From 2530d6d4efe65328d228d59b568d0ccc01244681 Mon Sep 17 00:00:00 2001 From: SREEJITH P <41101572+sreejithuvt@users.noreply.github.com> Date: Tue, 16 Apr 2019 18:00:05 +0530 Subject: [PATCH 7/7] Add files via upload --- container-webapp-template.json | 250 ++++++++++++++++----------------- 1 file changed, 125 insertions(+), 125 deletions(-) diff --git a/container-webapp-template.json b/container-webapp-template.json index 7fecd06..02e3c57 100644 --- a/container-webapp-template.json +++ b/container-webapp-template.json @@ -1,125 +1,125 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "webAppName": { - "type": "String" - }, - "hostingPlanName": { - "type": "String" - }, - "appInsightsLocation": { - "type": "String" - }, - "sku": { - "defaultValue": "Standard", - "type": "String" - }, - "registryName": { - "type": "String" - }, - "imageName": { - "type":"String" - }, - "registryLocation": { - "type": "String" - }, - "registrySku": { - "defaultValue": "Standard", - "type": "String" - }, - "startupCommand": { - "defaultValue": "", - "type": "String" - } - }, - "resources": [ - { - "type": "Microsoft.Web/sites", - "name": "[parameters('webAppName')]", - "apiVersion": "2016-03-01", - "location": "[resourceGroup().location]", - "tags": { - "[concat('hidden-related:', '/subscriptions/', subscription().subscriptionId,'/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty" - }, - "properties": { - "name": "[parameters('webAppName')]", - "siteConfig": { - "appSettings": [ - { - "name": "DOCKER_REGISTRY_SERVER_URL", - "value": "[concat('https://', reference(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName'))).loginServer)]" - }, - { - "name": "DOCKER_REGISTRY_SERVER_USERNAME", - "value": "[listCredentials(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName')), '2017-10-01').username]" - }, - { - "name": "DOCKER_REGISTRY_SERVER_PASSWORD", - "value": "[listCredentials(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName')), '2017-10-01').passwords[0].value]" - }, - { - "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE", - "value": "false" - }, - { - "name": "APPINSIGHTS_INSTRUMENTATIONKEY", - "value": "[reference(resourceId('microsoft.insights/components/', parameters('webAppName')), '2015-05-01').InstrumentationKey]" - } - ], - "appCommandLine": "[parameters('startupCommand')]", - "linuxFxVersion": "[concat('DOCKER|', reference(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName'))).loginServer, '/', parameters('imageName'))]" - }, - "serverFarmId": "[concat('/subscriptions/', subscription().subscriptionId,'/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]", - "hostingEnvironment": "" - }, - "dependsOn": [ - "[concat('Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]", - "[resourceId('microsoft.insights/components/', parameters('webAppName'))]" - ] - }, - { - "type": "Microsoft.ContainerRegistry/registries", - "sku": { - "name": "[parameters('registrySku')]" - }, - "name": "[parameters('registryName')]", - "apiVersion": "2017-10-01", - "location": "[parameters('registryLocation')]", - "properties": { - "adminUserEnabled": "true" - } - }, - { - "type": "Microsoft.Web/serverfarms", - "sku": { - "Tier": "[first(skip(split(parameters('sku'), ' '), 1))]", - "Name": "[first(split(parameters('sku'), ' '))]" - }, - "kind": "linux", - "name": "[parameters('hostingPlanName')]", - "apiVersion": "2016-09-01", - "location": "[resourceGroup().location]", - "properties": { - "name": "[parameters('hostingPlanName')]", - "workerSizeId": "0", - "reserved": true, - "numberOfWorkers": "1", - "hostingEnvironment": "" - } - }, - { - "type": "Microsoft.Insights/components", - "name": "[parameters('webAppName')]", - "apiVersion": "2014-04-01", - "location": "[parameters('appInsightsLocation')]", - "tags": { - "[concat('hidden-link:', resourceGroup().id, '/providers/Microsoft.Web/sites/', parameters('webAppName'))]": "Resource" - }, - "properties": { - "applicationId": "[parameters('webAppName')]", - "Request_Source": "AzureTfsExtensionAzureProject" - } - } - ] -} +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "webAppName": { + "type": "String" + }, + "hostingPlanName": { + "type": "String" + }, + "appInsightsLocation": { + "type": "String" + }, + "sku": { + "defaultValue": "Standard", + "type": "String" + }, + "registryName": { + "type": "String" + }, + "imageName": { + "type":"String" + }, + "registryLocation": { + "type": "String" + }, + "registrySku": { + "defaultValue": "Standard", + "type": "String" + }, + "startupCommand": { + "defaultValue": "", + "type": "String" + } + }, + "resources": [ + { + "type": "Microsoft.Web/sites", + "name": "[parameters('webAppName')]", + "apiVersion": "2016-03-01", + "location": "[resourceGroup().location]", + "tags": { + "[concat('hidden-related:', '/subscriptions/', subscription().subscriptionId,'/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty" + }, + "properties": { + "name": "[parameters('webAppName')]", + "siteConfig": { + "appSettings": [ + { + "name": "DOCKER_REGISTRY_SERVER_URL", + "value": "[concat('https://', reference(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName'))).loginServer)]" + }, + { + "name": "DOCKER_REGISTRY_SERVER_USERNAME", + "value": "[listCredentials(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName')), '2017-10-01').username]" + }, + { + "name": "DOCKER_REGISTRY_SERVER_PASSWORD", + "value": "[listCredentials(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName')), '2017-10-01').passwords[0].value]" + }, + { + "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE", + "value": "false" + }, + { + "name": "APPINSIGHTS_INSTRUMENTATIONKEY", + "value": "[reference(resourceId('microsoft.insights/components/', parameters('webAppName')), '2015-05-01').InstrumentationKey]" + } + ], + "appCommandLine": "[parameters('startupCommand')]", + "linuxFxVersion": "[concat('DOCKER|', reference(concat('Microsoft.ContainerRegistry/registries/', parameters('registryName'))).loginServer, '/', parameters('imageName'))]" + }, + "serverFarmId": "[concat('/subscriptions/', subscription().subscriptionId,'/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]", + "hostingEnvironment": "" + }, + "dependsOn": [ + "[concat('Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]", + "[resourceId('microsoft.insights/components/', parameters('webAppName'))]" + ] + }, + { + "type": "Microsoft.ContainerRegistry/registries", + "sku": { + "name": "[parameters('registrySku')]" + }, + "name": "[parameters('registryName')]", + "apiVersion": "2017-10-01", + "location": "[parameters('registryLocation')]", + "properties": { + "adminUserEnabled": "true" + } + }, + { + "type": "Microsoft.Web/serverfarms", + "sku": { + "Tier": "[first(skip(split(parameters('sku'), ' '), 1))]", + "Name": "[first(split(parameters('sku'), ' '))]" + }, + "kind": "linux", + "name": "[parameters('hostingPlanName')]", + "apiVersion": "2016-09-01", + "location": "[resourceGroup().location]", + "properties": { + "name": "[parameters('hostingPlanName')]", + "workerSizeId": "0", + "reserved": true, + "numberOfWorkers": "1", + "hostingEnvironment": "" + } + }, + { + "type": "Microsoft.Insights/components", + "name": "[parameters('webAppName')]", + "apiVersion": "2014-04-01", + "location": "[parameters('appInsightsLocation')]", + "tags": { + "[concat('hidden-link:', resourceGroup().id, '/providers/Microsoft.Web/sites/', parameters('webAppName'))]": "Resource" + }, + "properties": { + "applicationId": "[parameters('webAppName')]", + "Request_Source": "AzureTfsExtensionAzureProject" + } + } + ] +} \ No newline at end of file