Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 56c114e

Browse files
authored
Revert "Code architecture refactoring and fixing project structure (#612)" (#629)
This reverts commit 1f8e00e.
1 parent dec0c2e commit 56c114e

File tree

183 files changed

+1819
-4063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+1819
-4063
lines changed

.azure-pipelines/common/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ steps:
33
displayName: 'Build Projects'
44
inputs:
55
command: 'build'
6-
projects: 'src/**/*.*csproj'
6+
projects: 'src/APIM_ARMTemplate/**/*.csproj'
77

88
- task: DotNetCoreCLI@2
99
displayName: 'Run Tests'
1010
inputs:
1111
command: 'test'
12-
projects: 'tests/**/*.*csproj'
12+
projects: 'src/APIM_ARMTemplate/**test**/**.*csproj'

.gitignore

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,6 @@ nupkg/
1212
!.vscode/launch.json
1313
!.vscode/extensions.json
1414

15-
# Rider
16-
## User specific
17-
**/.idea/**/workspace.xml
18-
**/.idea/**/tasks.xml
19-
**/.idea/shelf/*
20-
**/.idea/dictionaries
21-
**/.idea/httpRequests/
22-
23-
## Sensitive or high-churn files
24-
**/.idea/**/dataSources/
25-
**/.idea/**/dataSources.ids
26-
**/.idea/**/dataSources.xml
27-
**/.idea/**/dataSources.local.xml
28-
**/.idea/**/sqlDataSources.xml
29-
**/.idea/**/dynamic.xml
30-
31-
## Rider auto-generates .iml files, and contentModel.xml
32-
**/.idea/**/*.iml
33-
**/.idea/**/contentModel.xml
34-
**/.idea/**/modules.xml
35-
3615
# User-specific files
3716
*.suo
3817
*.user

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ APIs have become mundane. They have become the de facto standard for connecting
66

77
With the strategic value of APIs, a continuous integration (CI) and continuous deployment (CD) pipeline has become an important aspect of API development. It allows organizations to automate deployment of API changes without error-prone manual steps, detect issues earlier, and ultimately deliver value to end users faster.
88

9-
This repository provides [guidance](./README.md), [examples](./example/), and [tools](./src/README.md) to help you achieve API DevOps with Azure API Management.
9+
This repository provides [guidance](./README.md), [examples](./example/), and [tools](./src/APIM_ARMTemplate/README.md) to help you achieve API DevOps with Azure API Management.
1010

1111
## The Problem
1212

@@ -39,9 +39,9 @@ API developers will fork the publisher repository to a developer repository and
3939

4040
We realize there are two challenges for API developers when working with Resource Manager templates:
4141

42-
* First, API developers often work with [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification) and may not be familiar with Resource Manager schemas. Authoring templates manually might be an error-prone task. Therefore, we created a utility tool called [**Creator**](./src/README.md#Creator) to automate the creation of API templates based on an Open API Specification file. Optionally, developers can supply API Management policies for an API in XML format. Basically, the tool inserts the Open API specification and policies into a Resource Manager template in the proper format. With this tool, API developers can continue focusing on the formats and artifacts they are familiar with.
42+
* First, API developers often work with [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification) and may not be familiar with Resource Manager schemas. Authoring templates manually might be an error-prone task. Therefore, we created a utility tool called [**Creator**](./src/APIM_ARMTemplate/README.md#Creator) to automate the creation of API templates based on an Open API Specification file. Optionally, developers can supply API Management policies for an API in XML format. Basically, the tool inserts the Open API specification and policies into a Resource Manager template in the proper format. With this tool, API developers can continue focusing on the formats and artifacts they are familiar with.
4343

44-
* Second, for customers who have already been using API Management, another challenge is how to extract existing configurations into Resource Manager templates. For those customers, We have created another tool called [**Extractor**](./src/README.md#extractor) to help them generate templates by extracting configurations from their exisitng API Management instances.
44+
* Second, for customers who have already been using API Management, another challenge is how to extract existing configurations into Resource Manager templates. For those customers, We have created another tool called [**Extractor**](./src/APIM_ARMTemplate/README.md#extractor) to help them generate templates by extracting configurations from their exisitng API Management instances.
4545

4646
Once API developers have finished developing and testing an API, and have generated the API template, they can submit a pull request to merge the changes to the publisher repository. API publishers can validate the pull request and make sure the changes are safe and compliant. For example, they can check if only HTTPS is allowed to communicate with the API. Most of these validations can be automated as a step in the CI/CD pipeline. Once the changes are approved and merged successfully, API publishers can choose to deploy them to the Production instance either on schedule or on demand. The deployment of the templates can be automated using [Github Actions](https://github.com/Azure/apimanagement-devops-samples), [Azure Pipeline](https://docs.microsoft.com/en-us/azure/devops/pipelines/?view=azure-devops), [PowerShell](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy), [Azure CLI](Azure-cli-example.md) or other tools. An example using Azure DevOps can be find [here](docs/AzDO-Example.md)
4747

docs/AzDO-Example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Where:
7676

7777
**RESOURCE-GROUP-NAME:** Resource group where the DEV-APIM-NAME is hosted.
7878

79-
***For more information on how to run the application and parameters, [go to this page](https://github.com/Azure/azure-api-management-devops-resource-kit/blob/master/src/README.md#extractor).***
79+
***For more information on how to run the application and parameters, [go to this page](https://github.com/Azure/azure-api-management-devops-resource-kit/blob/master/src/APIM_ARMTemplate/README.md#extractor).***
8080

8181
After executing the command above, you will see something similar to this:
8282

example/demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ In order to run the creator on this example:
44

55
```bash
66
mkdir Output
7-
dotnet run --project ../../src/ARMTemplates create --configFile Input/valid.yml
7+
dotnet run --project ../../src/APIM_ARMTemplate/apimtemplate create --configFile Input/valid.yml
88
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)