forked from loafle/openapi-generator-original
* [scala] Set support for unique arrays This includes and builds upon community contribution for better Set support in Scala. It makes property + model work as expected with Set and default values across all Scala generators. Included tests to account for new changes. This also reverts the community contribution to remove ListBuffer imports and change the default for array to ListBuffer. Users should use the instantiation types map to modify the desired array instantiation type. Any new default should target a new minor release after community discussion, as it affects all existing SDKs generated with openapi-generator. * [scala] Improve default handling of monadic collection type * [scala] Regenerate samples * Update ScalaPlayFrameworkServerCodegen.java Scala Play defaulted to List and should continue to do so. Co-authored-by: František Kocun <frantisek.kocun@gmail.com>
82 lines
1.4 KiB
Scala
82 lines
1.4 KiB
Scala
package api
|
|
|
|
import model.User
|
|
|
|
/**
|
|
* Provides a default implementation for [[UserApi]].
|
|
*/
|
|
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-01-04T23:10:22.106-05:00[America/New_York]")
|
|
class UserApiImpl extends UserApi {
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
override def createUser(body: User): Unit = {
|
|
// TODO: Implement better logic
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
override def createUsersWithArrayInput(body: List[User]): Unit = {
|
|
// TODO: Implement better logic
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
override def createUsersWithListInput(body: List[User]): Unit = {
|
|
// TODO: Implement better logic
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
override def deleteUser(username: String): Unit = {
|
|
// TODO: Implement better logic
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
override def getUserByName(username: String): User = {
|
|
// TODO: Implement better logic
|
|
|
|
User(None, None, None, None, None, None, None, None)
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
override def loginUser(username: String, password: String): String = {
|
|
// TODO: Implement better logic
|
|
|
|
""
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
override def logoutUser(): Unit = {
|
|
// TODO: Implement better logic
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
override def updateUser(username: String, body: User): Unit = {
|
|
// TODO: Implement better logic
|
|
|
|
|
|
}
|
|
}
|