mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
updated readme
This commit is contained in:
parent
9a86b1df8b
commit
87b1d71f72
@ -50,13 +50,14 @@ $ find -type f
|
||||
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.
|
||||
|
||||
|
||||
### 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.
|
||||
|
||||
|
@ -3,13 +3,13 @@ import com.github.siasia.PluginKeys._
|
||||
|
||||
assemblySettings
|
||||
|
||||
organization := "org.eatbacon"
|
||||
organization := "com.wordnik"
|
||||
|
||||
seq(webSettings :_*)
|
||||
|
||||
mainClass in assembly := Some("JettyMain")
|
||||
|
||||
name := "sfth"
|
||||
name := "scalatra-sample"
|
||||
|
||||
version := "0.1.0-SNAPSHOT"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user