forked from loafle/openapi-generator-original
updated readme
This commit is contained in:
parent
f2f33b98f7
commit
2443d3d91b
@ -50,13 +50,14 @@ $ find -type f
|
|||||||
To run the server, cd to the `samples/server-generator/scalatra/output` folder and run:
|
To run the server, cd to the `samples/server-generator/scalatra/output` folder and run:
|
||||||
|
|
||||||
```
|
```
|
||||||
sbt run
|
sbt
|
||||||
|
|
||||||
|
> container:start
|
||||||
```
|
```
|
||||||
|
|
||||||
You can now load the swagger-ui against `http://localhost:8002/api/resources.json`. Of course this isn't a fully
|
You can now load the swagger-ui against `http://localhost:8080/resources.json`. Of course this isn't a fully
|
||||||
runnable server! You have to add the logic in the apis/*.scala files. But that's the easy part.
|
runnable server! You have to add the logic in the apis/*.scala files. But that's the easy part.
|
||||||
|
|
||||||
|
|
||||||
### Making it your own
|
### Making it your own
|
||||||
Running the sample is easy, but how about making your own server? Easy! Just modify the `samples/server-generator/scalatra/ScalatraServerGenerator.scala` file.
|
Running the sample is easy, but how about making your own server? Easy! Just modify the `samples/server-generator/scalatra/ScalatraServerGenerator.scala` file.
|
||||||
|
|
||||||
|
@ -3,13 +3,13 @@ import com.github.siasia.PluginKeys._
|
|||||||
|
|
||||||
assemblySettings
|
assemblySettings
|
||||||
|
|
||||||
organization := "org.eatbacon"
|
organization := "com.wordnik"
|
||||||
|
|
||||||
seq(webSettings :_*)
|
seq(webSettings :_*)
|
||||||
|
|
||||||
mainClass in assembly := Some("JettyMain")
|
mainClass in assembly := Some("JettyMain")
|
||||||
|
|
||||||
name := "sfth"
|
name := "scalatra-sample"
|
||||||
|
|
||||||
version := "0.1.0-SNAPSHOT"
|
version := "0.1.0-SNAPSHOT"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user