Skip to content

Commit 6cb4473

Browse files
committed
Merge pull request #1328 from ducin/docs-toc
readme: Table of Contents
2 parents 65a9c78 + 12d8f97 commit 6cb4473

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

README.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,38 @@ This is the swagger codegen project, which allows generation of client libraries
77

88
Check out [Swagger-Spec](https://github.com/swagger-api/swagger-spec) for additional information about the Swagger project, including additional libraries with support for other languages and more.
99

10+
# Table of contents
11+
12+
- [Swagger Code Generator](#swagger-code-generator)
13+
- [Overview](#overview)
14+
- [Table of Contents](#table-of-contents)
15+
- Installation
16+
- [Build and run using docker](#build-and-run-using-docker)
17+
- [Build a nodejs server stub](#build-a-nodejs-server-stub)
18+
- [Compatibility](#compatibility)
19+
- [Prerequisites](#prerequisites)
20+
- [OS X Users](#os-x-users)
21+
- [Building](#building)
22+
- Generators
23+
- [To generate a sample client library](#to-generate-a-sample-client-library)
24+
- [Generating libraries from your server](#generating-libraries-from-your-server)
25+
- [Modifying the client library format](#modifying-the-client-library-format)
26+
- [Making your own codegen modules](#making-your-own-codegen-modules)
27+
- [Where is Javascript???](#where-is-javascript)
28+
- [Generating a client from local files](#generating-a-client-from-local-files)
29+
- [Customizing the generator](#customizing-the-generator)
30+
- [Validating your swagger spec](#validating-your-swagger-spec)
31+
- [Generating dynamic html api documentation](#generating-dynamic-html-api-documentation)
32+
- [Generating static html api documentation](#generating-static-html-api-documentation)
33+
- [To build a server stub](#to-build-a-server-stub)
34+
- [node.js](#nodejs)
35+
- [rails-grape](#rails-grape)
36+
- [scala scalatra](#scala-scalatra)
37+
- [java jax-rs](#java-jax-rs)
38+
- [java spring-mvc](#java-spring-mvc)
39+
- [To build the codegen library](#to-build-the-codegen-library)
40+
- [License](#license)
41+
1042
## Build and run using docker
1143

1244
```
@@ -17,7 +49,7 @@ cd swagger-codegen
1749
./run-in-docker.sh mvn package
1850
```
1951

20-
Build a nodejs server stub:
52+
## Build a nodejs server stub
2153

2254
```
2355
./run-in-docker.sh generate \
@@ -31,7 +63,7 @@ The Swagger Specification has undergone 3 revisions since initial creation in 20
3163

3264
Swagger Codegen Version | Release Date | Swagger Spec compatibility | Notes
3365
-------------------------- | ------------ | -------------------------- | -----
34-
2.1.4-SNAPSHOT | | 1.0, 1.1, 1.2, 2.0 | [master](https://github.com/swagger-api/swagger-codegen)
66+
2.1.4-SNAPSHOT | | 1.0, 1.1, 1.2, 2.0 | [master](https://github.com/swagger-api/swagger-codegen)
3567
2.1.3 (**current stable**) | 2015-08-24 | 1.0, 1.1, 1.2, 2.0 | [tag v2.1.3](https://github.com/swagger-api/swagger-codegen/tree/v2.1.3)
3668
2.0.17 | 2014-08-22 | 1.1, 1.2 | [tag v2.0.17](https://github.com/swagger-api/swagger-codegen/tree/v2.0.17)
3769
1.0.4 | 2012-04-12 | 1.0, 1.1 | [tag v1.0.4](https://github.com/swagger-api/swagger-codegen/tree/swagger-codegen_2.9.1-1.1)
@@ -169,7 +201,7 @@ static code generation.
169201
There is a third-party component called [swagger-js-codegen](https://github.com/wcandillon/swagger-js-codegen) that can generate angularjs or nodejs source code from a swagger specification.
170202

171203

172-
#### Generating a client from flat files (i.e. no remote server calls)
204+
#### Generating a client from local files
173205
If you don't want to call your server, you can save the swagger spec files into a directory and pass an argument
174206
to the code generator like this:
175207

@@ -336,6 +368,7 @@ open index.html
336368
You can also use the codegen to generate a server for a couple different frameworks. Take a look here:
337369

338370
### node.js
371+
339372
```
340373
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
341374
-i http://petstore.swagger.io/v2/swagger.json \
@@ -344,8 +377,8 @@ java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
344377
```
345378

346379
### rails-grape
347-
#### Not yet migrated to this branch
348380

381+
*Not yet migrated to this branch*
349382

350383
### scala scalatra
351384
```

0 commit comments

Comments
 (0)