forked from loafle/openapi-generator-original
Hide timestamp in Scala Play server samples (#5495)
* hide timestamp in scala play server output * add chameleon82 to scala tech committee
This commit is contained in:
parent
eabdafad88
commit
4ac054f723
@ -949,7 +949,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
||||||
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
||||||
| Rust | @frol (2017/07) @farcaller (2017/08) @bjgill (2017/12) @richardwhiuk (2019/07) |
|
| Rust | @frol (2017/07) @farcaller (2017/08) @bjgill (2017/12) @richardwhiuk (2019/07) |
|
||||||
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03) |
|
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03) |
|
||||||
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) |
|
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) |
|
||||||
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) |
|
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) |
|
||||||
|
|
||||||
|
@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate -t modules/openapi-generator/src/main/resources/scala-play-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g scala-play-server -o samples/server/petstore/scala-play-server $@"
|
ags="generate -t modules/openapi-generator/src/main/resources/scala-play-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g scala-play-server -o samples/server/petstore/scala-play-server --additional-properties hideGenerationTimestamp=true $@"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||||
|
|
||||||
This Scala Play Framework project was generated by the OpenAPI generator tool at 2020-02-29T14:21:53.710+07:00[Asia/Bangkok].
|
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import model.ApiResponse
|
|||||||
import model.Pet
|
import model.Pet
|
||||||
import play.api.libs.Files.TemporaryFile
|
import play.api.libs.Files.TemporaryFile
|
||||||
|
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
trait PetApi {
|
trait PetApi {
|
||||||
/**
|
/**
|
||||||
* Add a new pet to the store
|
* Add a new pet to the store
|
||||||
|
@ -8,7 +8,7 @@ import model.ApiResponse
|
|||||||
import model.Pet
|
import model.Pet
|
||||||
import play.api.libs.Files.TemporaryFile
|
import play.api.libs.Files.TemporaryFile
|
||||||
|
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
@Singleton
|
@Singleton
|
||||||
class PetApiController @Inject()(cc: ControllerComponents, api: PetApi) extends AbstractController(cc) {
|
class PetApiController @Inject()(cc: ControllerComponents, api: PetApi) extends AbstractController(cc) {
|
||||||
/**
|
/**
|
||||||
|
@ -7,7 +7,7 @@ import play.api.libs.Files.TemporaryFile
|
|||||||
/**
|
/**
|
||||||
* Provides a default implementation for [[PetApi]].
|
* Provides a default implementation for [[PetApi]].
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
class PetApiImpl extends PetApi {
|
class PetApiImpl extends PetApi {
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
|
@ -2,7 +2,7 @@ package api
|
|||||||
|
|
||||||
import model.Order
|
import model.Order
|
||||||
|
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
trait StoreApi {
|
trait StoreApi {
|
||||||
/**
|
/**
|
||||||
* Delete purchase order by ID
|
* Delete purchase order by ID
|
||||||
|
@ -6,7 +6,7 @@ import play.api.libs.json._
|
|||||||
import play.api.mvc._
|
import play.api.mvc._
|
||||||
import model.Order
|
import model.Order
|
||||||
|
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
@Singleton
|
@Singleton
|
||||||
class StoreApiController @Inject()(cc: ControllerComponents, api: StoreApi) extends AbstractController(cc) {
|
class StoreApiController @Inject()(cc: ControllerComponents, api: StoreApi) extends AbstractController(cc) {
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +5,7 @@ import model.Order
|
|||||||
/**
|
/**
|
||||||
* Provides a default implementation for [[StoreApi]].
|
* Provides a default implementation for [[StoreApi]].
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
class StoreApiImpl extends StoreApi {
|
class StoreApiImpl extends StoreApi {
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
|
@ -2,7 +2,7 @@ package api
|
|||||||
|
|
||||||
import model.User
|
import model.User
|
||||||
|
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
trait UserApi {
|
trait UserApi {
|
||||||
/**
|
/**
|
||||||
* Create user
|
* Create user
|
||||||
|
@ -6,7 +6,7 @@ import play.api.libs.json._
|
|||||||
import play.api.mvc._
|
import play.api.mvc._
|
||||||
import model.User
|
import model.User
|
||||||
|
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
@Singleton
|
@Singleton
|
||||||
class UserApiController @Inject()(cc: ControllerComponents, api: UserApi) extends AbstractController(cc) {
|
class UserApiController @Inject()(cc: ControllerComponents, api: UserApi) extends AbstractController(cc) {
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +5,7 @@ import model.User
|
|||||||
/**
|
/**
|
||||||
* Provides a default implementation for [[UserApi]].
|
* Provides a default implementation for [[UserApi]].
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
class UserApiImpl extends UserApi {
|
class UserApiImpl extends UserApi {
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
|
@ -5,7 +5,7 @@ import play.api.libs.json._
|
|||||||
/**
|
/**
|
||||||
* Describes the result of uploading an image resource
|
* Describes the result of uploading an image resource
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
case class ApiResponse(
|
case class ApiResponse(
|
||||||
code: Option[Int],
|
code: Option[Int],
|
||||||
`type`: Option[String],
|
`type`: Option[String],
|
||||||
|
@ -5,7 +5,7 @@ import play.api.libs.json._
|
|||||||
/**
|
/**
|
||||||
* A category for a pet
|
* A category for a pet
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
case class Category(
|
case class Category(
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
name: Option[String]
|
name: Option[String]
|
||||||
|
@ -7,7 +7,7 @@ import java.time.OffsetDateTime
|
|||||||
* An order for a pets from the pet store
|
* An order for a pets from the pet store
|
||||||
* @param status Order Status
|
* @param status Order Status
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
case class Order(
|
case class Order(
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
petId: Option[Long],
|
petId: Option[Long],
|
||||||
|
@ -6,7 +6,7 @@ import play.api.libs.json._
|
|||||||
* A pet for sale in the pet store
|
* A pet for sale in the pet store
|
||||||
* @param status pet status in the store
|
* @param status pet status in the store
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
case class Pet(
|
case class Pet(
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
category: Option[Category],
|
category: Option[Category],
|
||||||
|
@ -5,7 +5,7 @@ import play.api.libs.json._
|
|||||||
/**
|
/**
|
||||||
* A tag for a pet
|
* A tag for a pet
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
case class Tag(
|
case class Tag(
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
name: Option[String]
|
name: Option[String]
|
||||||
|
@ -6,7 +6,7 @@ import play.api.libs.json._
|
|||||||
* A User who is purchasing from the pet store
|
* A User who is purchasing from the pet store
|
||||||
* @param userStatus User Status
|
* @param userStatus User Status
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
case class User(
|
case class User(
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
username: Option[String],
|
username: Option[String],
|
||||||
|
@ -4,7 +4,7 @@ import api._
|
|||||||
import play.api.inject.{Binding, Module => PlayModule}
|
import play.api.inject.{Binding, Module => PlayModule}
|
||||||
import play.api.{Configuration, Environment}
|
import play.api.{Configuration, Environment}
|
||||||
|
|
||||||
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-29T14:21:53.710+07:00[Asia/Bangkok]")
|
|
||||||
class Module extends PlayModule {
|
class Module extends PlayModule {
|
||||||
override def bindings(environment: Environment, configuration: Configuration): Seq[Binding[_]] = Seq(
|
override def bindings(environment: Environment, configuration: Configuration): Seq[Binding[_]] = Seq(
|
||||||
bind[PetApi].to[PetApiImpl],
|
bind[PetApi].to[PetApiImpl],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user