Skip to content

Commit 95a51d7

Browse files
author
Chris Wiechmann
authored
Merge pull request #5 from Axway-API-Management-Plus/develop
Prepare to release version 1.0.0
2 parents 8319579 + b8f31ed commit 95a51d7

290 files changed

Lines changed: 5998 additions & 5259 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
name: Bug report
3-
about: Create a report to help us improve Swagger-Promote
3+
about: Create a report to help us to improve the API-Manager CLI
44
title: "[BUG]"
55
labels: bug
66
assignees: cwiechmann
77

88
---
99

10-
**Swagger-Promote version**
11-
> Please make sure to use the latest Swagger-Promote version.
10+
**API-Mgr. CLI version**
11+
> Please make sure to use the latest available version before reporting a bug.
1212
1313
**API-Manager and Service-Pack Version**
1414

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
---
22
name: Feature request
3-
about: Tell us what you need and why in Swagger-Promote
3+
about: Tell us what you need and why in the API-Mgr. CLI
44
title: "[Feature]"
55
labels: enhancement
66
assignees: cwiechmann
77

88
---
99

1010
**User story**
11-
>To integrate Swagger-Promote into our CI/CD pipeline we would like have
12-
>Swagger-Promote available as a Maven-Module.
11+
1312

1413
**Additional context**
15-
>This would avoid to manage Swagger-Promote in a local repository.
14+

.github/ISSUE_TEMPLATE/question.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
name: Question
3-
about: Ask a question concerning Swagger-Promote
3+
about: Ask a question concerning the CLI
44
title: "[Help]"
55
labels: help wanted
66
assignees: cwiechmann
77

88
---
99

10-
**Swagger-Promote Version**
10+
**API-Manager CLI Version**
1111

1212

1313
**API-Manager and Service-Pack Version**

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Axway API-Management CLI Change Log
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## [Unreleased]
8+
9+
## [1.0.0] 2020-06-15
10+
### Added
11+
- Initial version of the APIM-CLI
12+
- Swagger-Promote completely refactored
13+
- Migrated API-Import & Export to dedicated modules
14+
- New modules to manage applications (Import and Export)
15+
- Get APIs and Applications (Filtered, different formats)
16+
- Delete APIs (Front and Backend)
17+
- Publish APIs
18+
- Introduced API-Management programming interface

README.md

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,46 @@
11
# Axway API-Management CLI
22

3-
This CLI tool allows you to control the Axway API management solution without access through the Web UI. You can call the CLI manually or integrate it into a CI/CD pipeline. The CLI is based on [Swagger-Promote](https://github.com/Axway-API-Management-Plus/apimanager-swagger-promote), which has been refactored to support more use-cases than only APIs.
3+
This CLI allows you to control the Axway API management solution without access through the Web UI. You can call the CLI manually or integrate it into a CI/CD pipeline. The CLI is based on [Swagger-Promote](https://github.com/Axway-API-Management-Plus/apimanager-swagger-promote), which has been refactored to support more use-cases than only API-Import and -Export.
44

55
## Everything as code
6-
The basic idea for the so-called "Everything as code" approach is that the desired state of something is declared in a configuration file which stored in your version management system. A tool is replicating that declared state to become the actual state. This is used for instance to manage a complex Cloud-Infrastructure called Infrastructure as code. You may read more here: https://hackernoon.com/everything-as-code-explained-0ibg32a3
6+
The basic idea for the so-called "Everything as code" approach is that the desired state of something (API, Application, etc.) is declared in a configuration file which stored in your version management system. A tool, like this CLI, is then replicating that declared state to become the actual state in the target environment. This is used for instance to manage complex Cloud-Infrastructure called Infrastructure as code. You may read more here: https://hackernoon.com/everything-as-code-explained-0ibg32a3
77

88
This CLI is following the same approach for your APIs, Applications, etc. Everything is declared as code in a config file and stored in your version management system. The CLI transfers this desired state manually or automatically via a pipeline into the API management platform to become the actual state.
9-
Additionally the CLI supports basic administrative commands for instance to display entities and perform simple tasks.
9+
Additionally the CLI supports basic administrative commands for instance to list and filter entities and perform simple tasks. More will be added very soon.
1010

1111
Watch this video (28 min): https://youtu.be/2i8i1zMAMps to get an overview + demo.
1212

13-
With that, an API developer is just providing the desired state configuration of the API, Application. When checked in, the [CI/CD-Pipeline](https://github.com/Axway-API-Management-Plus/apim-cli/wiki/9.-Jenkins-Integration-with-GitHub-&-Bitbucket) picks it up and replicates it into the API Manager.
13+
With that, an API developer or the operations team is just providing the desired state configuration of the API, Application. When checked in, the [CI/CD-Pipeline](https://github.com/Axway-API-Management-Plus/apim-cli/wiki/9.-Jenkins-Integration-with-GitHub-&-Bitbucket) picks it up and replicates it into the API Manager.
1414

1515
![API Manager Swagger-Promote overview](https://github.com/Axway-API-Management-Plus/apim-cli/blob/develop/misc/images/apimanager-swagger-promote-overview.png )
1616

1717
## Supported commands
1818

19-
### APIs
20-
| Command | Comment |
21-
| :--- | :--- |
22-
|**import**|Replicates an API into the API-Manager |
23-
|**export**|Exports one or more APIs from a running API-Manager |
19+
The CLI is flexible and is extended with new functions via modules. These can be accessed and discovered via the CLI on the basis of groups and their commands.
20+
To get an overview about the groups just call `apim`:
21+
```
22+
Available commands and options:
23+
apim app - Manage your applications
24+
apim api - Manage your APIs
25+
```
26+
To get for instance a `wide` list of APIs on the stage: `prod` execute the following command:
27+
```
28+
apim api get -s prod -wide
29+
```
30+
```
31+
....
32+
+--------------------------------------+-----------------+----------------+---------+---------------------+-------------+-------------+----------+----------------------+
33+
| API-Id | Path | Name | Version | V-Host | State | Security | Policies | Organization |
34+
+--------------------------------------+-----------------+----------------+---------+---------------------+-------------+-------------+----------+----------------------+
35+
| 518b15c9-350c-47d8-9ad6-16ce02ef9dfe | /vhost-test-950 | VHost Test 950 | 1.0.0 | api123.customer.com | unpublished | passThrough | None | API Development 5538 |
36+
| 39b7b2aa-7df8-44e0-b399-4e9d59dbad6d | /vhost-test-411 | VHost Test 411 | 1.0.0 | api123.customer.com | published | passThrough | None | API Development 5916 |
37+
+--------------------------------------+-----------------+----------------+---------+---------------------+-------------+-------------+----------+----------------------+
38+
......
39+
```
40+
41+
To get a list of commands for each group call for instance `apim app`
2442

25-
### Applications
26-
| Command | Comment |
27-
| :--- | :--- |
28-
|**import**|Replicates an application into the API-Manager |
29-
|**export**|Exports one or more applications from a running API-Manager |
43+
The CLI is flexible and more commands will be added. For an up-to-date list of the supported groups and commands, see the [documentation](https://github.com/Axway-API-Management-Plus/apim-cli/wiki#supported-commands).
3044

3145
## Quality assurance process
3246
By using this CLI to control your Axway API management infrastructure it becomes a key component of your CI/CD process. Product quality is therefore very important so that you can be confident this CLI is doing what it's supposed to do.
@@ -38,8 +52,12 @@ The automated End-2-End test suite contains of __113__ different scenarios, whic
3852
| Version | Branch | Status | Comment |
3953
| :--- | :--- | :---: | :--- |
4054
| 7.6.2 SP4 | develop | [![Build Status](https://travis-ci.org/Axway-API-Management-Plus/apim-cli.svg?branch=develop)](https://travis-ci.org/Axway-API-Management-Plus/apim-cli/branches)||
55+
| 7.7.0 SP2 | test-with-7.7-SP2 | [![Build Status](https://travis-ci.org/Axway-API-Management-Plus/apim-cli.svg?branch=test-with-7.7-SP2)](https://travis-ci.org/Axway-API-Management-Plus/apim-cli/branches)||
56+
| 7.7-20200130 | test-with-7.7-20200130 | [![Build Status](https://travis-ci.org/Axway-API-Management-Plus/apim-cli.svg?branch=test-with-7.7-20200130)](https://travis-ci.org/Axway-API-Management-Plus/apim-cli/branches)||
57+
| 7.7-20200331 | test-with-7.7-20200331 | [![Build Status](https://travis-ci.org/Axway-API-Management-Plus/apim-cli.svg?branch=test-with-7.7-20200331)](https://travis-ci.org/Axway-API-Management-Plus/apim-cli/branches)||
58+
| 7.7-2020053ß | test-with-7.7-20200530 | [![Build Status](https://travis-ci.org/Axway-API-Management-Plus/apim-cli.svg?branch=test-with-7.7-20200530)](https://travis-ci.org/Axway-API-Management-Plus/apim-cli/branches)||
4159

42-
Version 7.5.3 is NOT supported.
60+
Version 7.5.3 is NOT supported. Version 7.6.2 SP3 is required.
4361

4462
## Get started
4563

@@ -50,11 +68,15 @@ scripts\apim api import -c samples/basic/minimal-config-api-definition.json -s a
5068
```
5169
This command is reading the API-Management platform configuration details from the environment file: `env.api-env.properties` and replicates the given desired API state in the configuration file: `minimal-config-api-definition.json` into the API-Management platform.
5270

71+
Please see the [documentation](https://github.com/Axway-API-Management-Plus/apim-cli/wikis) for more information.
72+
5373
## Changelog
5474
See [change log](CHANGELOG.md)
5575

5676
## Contributing
5777

78+
![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen)
79+
5880
Please read [Contributing.md](https://github.com/Axway-API-Management-Plus/Common/blob/master/Contributing.md) for details on our code of conduct, and the process for submitting pull requests to us.
5981
Also please read this page on [how to contribute](https://github.com/Axway-API-Management-Plus/apimanager-swagger-promote/wiki/7.1-Contribute-to-this-project) to this project.
6082

distribution/assembly/dist-release.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<moduleSet>
1313
<useAllReactorProjects>true</useAllReactorProjects>
1414
<includes>
15-
<include>com.github.axway-api-management-plus.apim-cli:apimcli-core</include>
15+
<include>com.github.axway-api-management-plus.apim-cli:apimcli-apim-adapter</include>
1616
<include>com.github.axway-api-management-plus.apim-cli:apimcli-api-import</include>
1717
<include>com.github.axway-api-management-plus.apim-cli:apimcli-api-export</include>
1818
<include>com.github.axway-api-management-plus.apim-cli:apimcli-app-import</include>
@@ -40,7 +40,7 @@
4040
<directory>src/main/resources</directory>
4141
<outputDirectory>/lib</outputDirectory>
4242
<includes>
43-
<include>log4j.xml</include>
43+
<include>*.xml</include>
4444
</includes>
4545
</fileSet>
4646
<fileSet>

distribution/pom.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
53
<modelVersion>4.0.0</modelVersion>
64

75
<parent>
86
<groupId>com.github.axway-api-management-plus.apim-cli</groupId>
97
<artifactId>parent</artifactId>
10-
<version>0.0.9-SNAPSHOT</version>
8+
<version>1.0.0-RC2-SNAPSHOT</version>
119
<relativePath>../pom.xml</relativePath>
1210
</parent>
1311

@@ -20,7 +18,7 @@
2018
<dependencies>
2119
<dependency>
2220
<groupId>com.github.axway-api-management-plus.apim-cli</groupId>
23-
<artifactId>apimcli-core</artifactId>
21+
<artifactId>apimcli-apim-adapter</artifactId>
2422
</dependency>
2523
<dependency>
2624
<groupId>com.github.axway-api-management-plus.apim-cli</groupId>

modules/api-export/assembly/scripts/api-export.bat

Lines changed: 0 additions & 48 deletions
This file was deleted.

modules/api-export/assembly/scripts/api-export.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

modules/api-export/pom.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
42
<modelVersion>4.0.0</modelVersion>
53

64
<parent>
75
<groupId>com.github.axway-api-management-plus.apim-cli</groupId>
86
<artifactId>parent</artifactId>
9-
<version>0.0.9-SNAPSHOT</version>
7+
<version>1.0.0-RC2-SNAPSHOT</version>
108
<relativePath>../../pom.xml</relativePath>
119
</parent>
1210

@@ -19,7 +17,7 @@
1917
<dependencies>
2018
<dependency>
2119
<groupId>com.github.axway-api-management-plus.apim-cli</groupId>
22-
<artifactId>apimcli-core</artifactId>
20+
<artifactId>apimcli-apim-adapter</artifactId>
2321
</dependency>
2422
<dependency>
2523
<groupId>com.github.axway-api-management-plus.apim-cli</groupId>
@@ -40,7 +38,7 @@
4038
</dependency>
4139
<dependency>
4240
<groupId>com.github.axway-api-management-plus.apim-cli</groupId>
43-
<artifactId>apimcli-core</artifactId>
41+
<artifactId>apimcli-apim-adapter</artifactId>
4442
<version>${project.version}</version>
4543
<type>test-jar</type>
4644
<scope>test</scope>
@@ -105,5 +103,9 @@
105103
<groupId>org.slf4j</groupId>
106104
<artifactId>slf4j-log4j12</artifactId>
107105
</dependency>
106+
<dependency>
107+
<groupId>com.github.freva</groupId>
108+
<artifactId>ascii-table</artifactId>
109+
</dependency>
108110
</dependencies>
109111
</project>

0 commit comments

Comments
 (0)