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

Commit bc20483

Browse files
authored
Merge pull request #2 from ackintosh/readme
Cosmetic changes for README
2 parents b594262 + efa27ce commit bc20483

File tree

1 file changed

+76
-56
lines changed

1 file changed

+76
-56
lines changed

README.md

+76-56
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,84 @@
1-
# OpenAPI Generator
1+
<h1 align="center">OpenAPI Generator</h1>
22

3-
- Master (2.4.0): [![Build Status](https://img.shields.io/travis/openapitools/openapi-generator/master.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/openapitools/openapi-generator)
3+
<div align="center">
4+
Master (2.4.0)
5+
6+
[![Build Status](https://img.shields.io/travis/openapitools/openapi-generator/master.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/openapitools/openapi-generator)
47
[![Run Status](https://img.shields.io/shippable/5782588a3be4f4faa56c5bea.svg?label=Mustache%20Template%20Test)](https://app.shippable.com/projects/5782588a3be4f4faa56c5bea)
58
[![Windows Test](https://ci.appveyor.com/api/projects/status/github/openapitools/openapi-generator?branch=master&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
69
[![Java Test](https://circleci.com/gh/openapitools/openapi-generator.svg?style=shield)](https://circleci.com/gh/openapitools/openapi-generator)
7-
- 3.0.0: [![Build Status](https://img.shields.io/travis/openapitools/openapi-generator/3.0.0.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/openapitools/openapi-generator)
10+
11+
</div>
12+
13+
<div align="center">
14+
3.0.0
15+
16+
[![Build Status](https://img.shields.io/travis/openapitools/openapi-generator/3.0.0.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/openapitools/openapi-generator)
817
[![Run Status](https://img.shields.io/shippable/5782588a3be4f4faa56c5bea/3.0.0.svg?label=Mustache%20Template%20Test)](https://app.shippable.com/projects/5782588a3be4f4faa56c5bea)
918
[![Windows Test](https://ci.appveyor.com/api/projects/status/github/openapitools/openapi-generator?branch=3.0.0&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/openapi-generator-wh2wu)
1019
[![Java Test](https://circleci.com/gh/openapitools/openapi-generator/tree/3.0.0.svg?style=shield)](https://circleci.com/gh/openapitools/openapi-generator)
1120

21+
</div>
22+
23+
<div align="center">
1224

1325
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.swagger/openapi-generator-project/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/io.swagger/openapi-generator-project)
1426

27+
</div>
28+
29+
<div align="center">
30+
1531
:star::star::star: If you would like to contribute, please refer to [guidelines](CONTRIBUTING.md) and a list of [open tasks](https://github.com/openapitools/openapi-generator/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).:star::star::star:
1632

1733
:bangbang: To migrate from Swagger Codegen to OpenAPI Generator, please refer to the [migration guide](docs/migration-from-swagger-codegen.md) :bangbang:
1834

1935
:notebook_with_decorative_cover: For more information, please refer to the [Wiki page](https://github.com/openapitools/openapi-generator/wiki) and [FAQ](https://github.com/openapitools/openapi-generator/wiki/FAQ) :notebook_with_decorative_cover:
2036

37+
:notebook_with_decorative_cover: The eBook [A Beginner's Guide to Code Generation for REST APIs](https://gumroad.com/l/swagger_codegen_beginner) is a good starting point for begineers :notebook_with_decorative_cover:
38+
2139
:warning: If the OpenAPI spec is obtained from an untrusted source, please make sure you've reviewed the spec before using OpenAPI Generator to generate the API client, server stub or documentation as [code injection](https://en.wikipedia.org/wiki/Code_injection) may occur :warning:
2240

23-
:notebook_with_decorative_cover: The eBook [A Beginner's Guide to Code Generation for REST APIs](https://gumroad.com/l/swagger_codegen_beginner) is a good starting point for begineers.
41+
</div>
2442

2543
## Overview
2644
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification). Currently, the following languages/frameworks are supported:
2745

28-
- **API clients**: **ActionScript**, **Ada**, **Apex**, **Bash**, **C#** (.net 2.0, 3.5 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured), **Kotlin**, **Lua**, **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x), **Typescript** (Angular1.x, Angular2.x, Fetch, jQuery, Node)
29-
- **Server stubs**: **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang**, **Go**, **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples)), **Kotlin**, **PHP** (Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** (rust-server), **Scala** ([Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), Scalatra)
30-
- **API documentation generators**: **HTML**, **Confluence Wiki**
31-
- **Configuration files**: [**Apache2**](https://httpd.apache.org/)
32-
- **Others**: **JMeter**
46+
| | Languages/Frameworks |
47+
|-|-|
48+
**API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C#** (.net 2.0, 3.5 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured), **Kotlin**, **Lua**, **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (rust, rust-server), **Scala** (akka, http4s, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x), **Typescript** (Angular1.x, Angular2.x, Fetch, jQuery, Node)
49+
**Server stubs** | **Ada**, **C#** (ASP.NET Core, NancyFx), **C++** (Pistache, Restbed), **Erlang**, **Go**, **Haskell** (Servant), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples)), **Kotlin**, **PHP** (Lumen, Slim, Silex, [Symfony](https://symfony.com/), [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** (rust-server), **Scala** ([Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), Scalatra)
50+
**API documentation generators** | **HTML**, **Confluence Wiki**
51+
**Configuration files** | [**Apache2**](https://httpd.apache.org/)
52+
**Others** | **JMeter**
3353

34-
35-
# Table of contents
54+
## Table of contents
3655

3756
- [OpenAPI Generator](#openapi-generator)
3857
- [Overview](#overview)
3958
- [Table of Contents](#table-of-contents)
40-
- [Installation](#installation)
41-
- [Compatibility](#compatibility)
42-
- [Download JAR](#download-jar)
43-
- [Build Projects](#building-projects)
44-
- [Homebrew](#homebrew)
45-
- [Docker](#docker)
46-
- [Getting Started](#getting-started)
47-
- [Usage](#usage)
48-
- [Customization](#customization)
49-
- [Workflow Integration](#workflow-integration)
50-
- [Online Generators](#online-generators)
51-
- [License Information on Generated Code](#license-information-on-generated-code)
52-
- [Companies/Projects using OpenAPI Generator](#companiesprojects-using-openapi-generator)
53-
- [Presentations/Videos/Tutorials/Books](#presentationsvideostutorialsbooks)
54-
- [About Us](#about-us)
55-
- [OpenAPI Generator Core Team](#openapi-generator-core-team)
56-
- [OpenAPI Generator Technical Committee](#openapi-generator-technical-committee)
57-
- [History of OpenAPI Generator](#history-of-openapi-generator)
58-
- [License](#license)
59-
60-
## Installation
61-
62-
### Compatibility
59+
- [1 - Installation](#1---installation)
60+
- [1.1 - Compatibility](#11---compatibility)
61+
- [1.2 - Download JAR](#12---download-jar)
62+
- [1.3 - Build Projects](#13---build-projects)
63+
- [1.4 - Homebrew](#14---homebrew)
64+
- [1.5 - Docker](#15---docker)
65+
- [2 - Getting Started](#2---getting-started)
66+
- [3 - Usage](#3---usage)
67+
- [3.1 - Customization](#31---customization)
68+
- [3.2 - Workflow Integration](#32---workflow-integration-maven-gradle-github-cicd)
69+
- [3.3 - Online Generators](#33---online-openapi-generator)
70+
- [3.4 - License Information on Generated Code](#34---license-information-on-generated-code)
71+
- [4 - Companies/Projects using OpenAPI Generator](#4---companiesprojects-using-openapi-generator)
72+
- [5 - Presentations/Videos/Tutorials/Books](#5---presentationsvideostutorialsbooks)
73+
- [6 - About Us](#6---about-us)
74+
- [6.1 - OpenAPI Generator Core Team](#61---openapi-generator-core-team)
75+
- [6.2 - OpenAPI Generator Technical Committee](#62---openapi-generator-technical-committee)
76+
- [6.3 - History of OpenAPI Generator](#63---history-of-openapi-generator)
77+
- [7 - License](#7---license)
78+
79+
## [1 - Installation](#table-of-contents)
80+
81+
### [1.1 - Compatibility](#table-of-contents)
6382

6483
The OpenAPI Specification has undergone 3 revisions since initial creation in 2010. The openapi-generator project has the following compatibilities with the OpenAPI Specification:
6584

@@ -70,7 +89,8 @@ OpenAPI Generator Version | Release Date | OpenAPI Spec compatibility | Notes
7089
3.0.0 (current master, upcoming release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/3.0.0-SNAPSHOT/)| TBD | 1.0, 1.1, 1.2, 2.0, 3.0 | Minor release without breaking changes
7190

7291

73-
### Download JAR
92+
### [1.2 - Download JAR](#table-of-contents)
93+
7494
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
7595

7696
JAR location: `http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.0.0/openapi-generator-cli-3.0.0.jar`
@@ -93,7 +113,7 @@ export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
93113
export PATH=${JAVA_HOME}/bin:$PATH
94114
```
95115

96-
### Build Projects
116+
### [1.3 - Build Projects](#table-of-contents)
97117

98118
To build from source, you need the following installed and available in your `$PATH:`
99119

@@ -111,7 +131,7 @@ If you don't have maven installed, you may directly use the included [maven wrap
111131
./mvnw clean install
112132
```
113133

114-
### Homebrew
134+
### [1.4 - Homebrew](#table-of-contents)
115135

116136
To install, run `brew install openapi-generator`
117137

@@ -120,7 +140,7 @@ Here is an example usage to generate a Ruby client:
120140
openapi-generator generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l ruby -o /tmp/test/
121141
```
122142

123-
### Docker
143+
### [1.5 - Docker](#table-of-contents)
124144

125145
#### Public Pre-built Docker images
126146

@@ -205,7 +225,7 @@ cd /vagrant
205225
./run-in-docker.sh mvn package
206226
```
207227

208-
## Getting Started
228+
## [2 - Getting Started](#table-of-contents)
209229

210230
To generate a PHP client for [petstore.yaml](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml), please run the following
211231
```sh
@@ -225,7 +245,7 @@ To get a list of **general** options available, please run `java -jar modules/op
225245

226246
To get a list of PHP specified options (which can be passed to the generator with a config file via the `-c` option), please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar config-help -l php`
227247

228-
## Usage
248+
## [3 - Usage](#table-of-contents)
229249

230250
### To generate a sample client library
231251
You can build a client against the [Petstore API](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml) as follows:
@@ -304,19 +324,19 @@ Other languages have petstore samples, too:
304324
./bin/java-petstore.sh
305325
./bin/objc-petstore.sh
306326
```
307-
### Customization
327+
### [3.1 - Customization](#table-of-contents)
308328

309329
Please refer to [customization.md](docs/customization.md) on how to customize the output (e.g. package name, version)
310330

311-
### Workflow Integration (Maven, Gradle, Github, CI/CD)
331+
### [3.2 - Workflow Integration (Maven, Gradle, Github, CI/CD)](#table-of-contents)
312332

313333
Please refer to [integration.md](docs/integration.md) on how to integrate OpenAPI generator with Maven, Gradle, Github and CI/CD.
314334

315-
### Online OpenAPI generator
335+
### [3.3 - Online OpenAPI generator](#table-of-contents)
316336

317337
Please refer to [online-openapi-generator.md](docs/online-openapi-generator.md) on how to run and use the `openapi-generator-online` - a web service for `openapi-generator`.
318338

319-
### License information on Generated Code
339+
### [3.4 - License information on Generated Code](#table-of-contents)
320340

321341
The OpenAPI Generator project is intended as a benefit for users of the Open API Specification. The project itself has the [License](#license) as specified. In addition, please understand the following points:
322342

@@ -325,21 +345,21 @@ The OpenAPI Generator project is intended as a benefit for users of the Open API
325345

326346
When code is generated from this project, it shall be considered **AS IS** and owned by the user of the software. There are no warranties--expressed or implied--for generated code. You can do what you wish with it, and once generated, the code is your responsibility and subject to the licensing terms that you deem appropriate.
327347

328-
# Companies/Projects using OpenAPI Generator
348+
## [4 - Companies/Projects using OpenAPI Generator](#table-of-contents)
329349
Here are some companies/projects using OpenAPI Generator in production. To add your company/project to the list, please visit [README.md](README.md) and click on the icon to edit the page.
330350

331351
- [REST United](https://restunited.com)
332352

333-
# Presentations/Videos/Tutorials/Books
353+
## [5 - Presentations/Videos/Tutorials/Books](#table-of-contents)
334354

335355

336-
# About Us
356+
## [6 - About Us](#table-of-contents)
337357

338-
## OpenAPI Generator Core Team
358+
### [6.1 - OpenAPI Generator Core Team](#table-of-contents)
339359

340360
OpenAPI Generator core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.
341361

342-
### Core Team Members
362+
#### Core Team Members
343363
* [@wing328](https://github.com/wing328) (2015/07)
344364
* [@jimschubert](https://github.com/jimschubert) (2016/05)
345365
* [@cbornet](https://github.com/cbornet) (2016/05)
@@ -348,7 +368,7 @@ OpenAPI Generator core team members are contributors who have been making signif
348368
* [@JFCote](https://github.com/JFCote) (2018/03)
349369
* [@jmini](https://github.com/jmini) (2018/04)
350370

351-
### Template Creator
371+
#### Template Creator
352372
Here is a list of template creators:
353373
* API Clients:
354374
* Ada: @stcarrez
@@ -433,7 +453,7 @@ Here is a list of template creators:
433453
* Configuration
434454
* Apache2: @stkrwork
435455

436-
### How to join the core team
456+
#### How to join the core team
437457

438458
Here are the requirements to become a core team member:
439459
- rank within top 50 in https://github.com/openapitools/openapi-generator/graphs/contributors
@@ -446,7 +466,7 @@ Here are the requirements to become a core team member:
446466

447467
To become a Template Creator, simply submit a PR for new API client (e.g. Rust, Elixir) or server stub (e.g. Ruby Grape) generator.
448468

449-
## OpenAPI Generator Technical Committee
469+
### [6.2 - OpenAPI Generator Technical Committee](#table-of-contents)
450470

451471
Members of the OpenAPI Generator technical committee shoulder the following responsibilities:
452472

@@ -459,7 +479,7 @@ Who is eligible? Those who want to join must have at least 3 PRs merged into a g
459479

460480
If you want to join the committee, please kindly apply by sending an email to wing328hk@gmail.com ([@wing328](https://github.com/wing328)) with your Github ID.
461481

462-
### Members of Technical Committee
482+
#### Members of Technical Committee
463483

464484
| Languages | Member (join date) |
465485
|:-------------|:-------------|
@@ -494,11 +514,11 @@ If you want to join the committee, please kindly apply by sending an email to wi
494514
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @d-date (2018/03) |
495515
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) |
496516

497-
## History of OpenAPI Generator
517+
### [6.3 - History of OpenAPI Generator](#table-of-contents)
498518

499519
OpenAPI Generator is a fork of [Swagger Codegen](https://github.com/swagger-api/swagger-codegen). In view of the issues with the Swagger Codegen 3.0.0 (beta) release and the disagreement on the project's direction, more than 40 top contributors and template creators of Swagger Codegen decided to fork Swagger Codegen and maintain a community-driven version called "OpenAPI Generator". Please refer to the [Q&A](docs/qna.md) for more information.
500520

501-
### Founding Members (alphabetical order):
521+
#### Founding Members (alphabetical order):
502522

503523
- [Akihito Nakano](https://github.com/ackintosh)
504524
- [Artem Ocheredko](https://github.com/galaxie)
@@ -546,7 +566,7 @@ OpenAPI Generator is a fork of [Swagger Codegen](https://github.com/swagger-api/
546566

547567

548568

549-
License
569+
## [7 - License](#table-of-contents)
550570
-------
551571

552572
Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)

0 commit comments

Comments
 (0)