forked from loafle/openapi-generator-original
* stripped parameter enabled for all scala based generators * scala samples updated * docs generators updated * fix scalatra. regenerated by openapi3 script. manually removed enum default value from scalatra example due bug in schema extraction
59 lines
1.5 KiB
Scala
59 lines
1.5 KiB
Scala
package api
|
|
|
|
import model.User
|
|
|
|
@javax.annotation.Generated(value = Array("org.openapitools.codegen.languages.ScalaPlayFrameworkServerCodegen"), date = "2020-02-25T23:20:59.671788+07:00[Asia/Bangkok]")
|
|
trait UserApi {
|
|
/**
|
|
* Create user
|
|
* This can only be done by the logged in user.
|
|
* @param body Created user object
|
|
*/
|
|
def createUser(body: User): Unit
|
|
|
|
/**
|
|
* Creates list of users with given input array
|
|
* @param body List of user object
|
|
*/
|
|
def createUsersWithArrayInput(body: List[User]): Unit
|
|
|
|
/**
|
|
* Creates list of users with given input array
|
|
* @param body List of user object
|
|
*/
|
|
def createUsersWithListInput(body: List[User]): Unit
|
|
|
|
/**
|
|
* Delete user
|
|
* This can only be done by the logged in user.
|
|
* @param username The name that needs to be deleted
|
|
*/
|
|
def deleteUser(username: String): Unit
|
|
|
|
/**
|
|
* Get user by user name
|
|
* @param username The name that needs to be fetched. Use user1 for testing.
|
|
*/
|
|
def getUserByName(username: String): User
|
|
|
|
/**
|
|
* Logs user into the system
|
|
* @param username The user name for login
|
|
* @param password The password for login in clear text
|
|
*/
|
|
def loginUser(username: String, password: String): String
|
|
|
|
/**
|
|
* Logs out current logged in user session
|
|
*/
|
|
def logoutUser(): Unit
|
|
|
|
/**
|
|
* Updated user
|
|
* This can only be done by the logged in user.
|
|
* @param username name that need to be deleted
|
|
* @param body Updated user object
|
|
*/
|
|
def updateUser(username: String, body: User): Unit
|
|
}
|