mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 22:50:53 +00:00
updated docs
This commit is contained in:
parent
9a067c7821
commit
ea541a6cf7
32
README.md
32
README.md
@ -19,7 +19,7 @@ You also need to add the scala binary to your PATH.
|
|||||||
After cloning the project, you need to build it from source with this command:
|
After cloning the project, you need to build it from source with this command:
|
||||||
|
|
||||||
```
|
```
|
||||||
mvn package
|
./sbt assembly
|
||||||
```
|
```
|
||||||
|
|
||||||
### To generate a sample client library
|
### To generate a sample client library
|
||||||
@ -139,17 +139,24 @@ To validate an api and write output to ./swagger-errors.html:
|
|||||||
./bin/validate.sh http://petstore.swagger.wordnik.com/api/resources.json "" ./swagger-errors.html
|
./bin/validate.sh http://petstore.swagger.wordnik.com/api/resources.json "" ./swagger-errors.html
|
||||||
```
|
```
|
||||||
|
|
||||||
### To build the codegen library
|
### Generating static api documentation
|
||||||
|
If you need to make static pages or don't want the sandbox of the swagger-ui, you can use the codegen to build them. Remember, the engine is just using mustache templates--the output format is your call.
|
||||||
This will create the swagger-codegen library from source.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
mvn package
|
./bin/static-docs.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Note! The templates are included in the library generated. If you want to modify the templates, you'll need to
|
Will produce the output here:
|
||||||
either repackage the library OR modify your codegen script to use a file path!
|
|
||||||
|
|
||||||
|
```
|
||||||
|
https://github.com/wordnik/swagger-codegen/tree/master/samples/docs/sd
|
||||||
|
```
|
||||||
|
|
||||||
|
which is based on these templates:
|
||||||
|
|
||||||
|
```
|
||||||
|
https://github.com/wordnik/swagger-codegen/tree/master/src/main/resources/swagger-static
|
||||||
|
```
|
||||||
|
|
||||||
### To build a server stub
|
### To build a server stub
|
||||||
|
|
||||||
@ -161,6 +168,17 @@ You can also use the codegen to generate a server for a couple different framewo
|
|||||||
|
|
||||||
* [scala scalatra generator](https://github.com/wordnik/swagger-codegen/tree/master/samples/server-generator/scalatra)
|
* [scala scalatra generator](https://github.com/wordnik/swagger-codegen/tree/master/samples/server-generator/scalatra)
|
||||||
|
|
||||||
|
### To build the codegen library
|
||||||
|
|
||||||
|
This will create the swagger-codegen library from source.
|
||||||
|
|
||||||
|
```
|
||||||
|
./sbt assembly
|
||||||
|
```
|
||||||
|
|
||||||
|
Note! The templates are included in the library generated. If you want to modify the templates, you'll need to
|
||||||
|
either repackage the library OR modify your codegen script to use a file path!
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user