Examples updated with names lower-camelized

This commit is contained in:
Camille Chafer 2015-04-02 18:02:21 +02:00
parent 6c4765fd00
commit 65b6d210bc
49 changed files with 546 additions and 546 deletions

View File

@ -15,11 +15,11 @@ object PetApi {
* code 404 : (Pet not found)
* code 400 : (Invalid ID supplied)
*
* @param Body Pet object that needs to be added to the store
* @param body Pet object that needs to be added to the store
*/
def updatePet(Body: Option[Pet] = None): ApiRequest[Unit] =
def updatePet(body: Option[Pet] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.PUT, "http://petstore.swagger.io/v2", "/pet", "application/json")
.withBody(Body)
.withBody(body)
.withErrorResponse[Unit](405)
.withErrorResponse[Unit](404)
.withErrorResponse[Unit](400)
@ -29,11 +29,11 @@ object PetApi {
* Expected answers:
* code 405 : (Invalid input)
*
* @param Body Pet object that needs to be added to the store
* @param body Pet object that needs to be added to the store
*/
def addPet(Body: Option[Pet] = None): ApiRequest[Unit] =
def addPet(body: Option[Pet] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/pet", "application/json")
.withBody(Body)
.withBody(body)
.withErrorResponse[Unit](405)
/**
@ -43,11 +43,11 @@ object PetApi {
* code 200 : Seq[Pet] (successful operation)
* code 400 : (Invalid status value)
*
* @param Status Status values that need to be considered for filter
* @param status Status values that need to be considered for filter
*/
def findPetsByStatus(Status: Seq[String]): ApiRequest[Seq[Pet]] =
def findPetsByStatus(status: Seq[String]): ApiRequest[Seq[Pet]] =
ApiRequest[Seq[Pet]](ApiMethods.GET, "http://petstore.swagger.io/v2", "/pet/findByStatus", "application/json")
.withQueryParam("status", ArrayValues(Status, MULTI))
.withQueryParam("status", ArrayValues(status, MULTI))
.withSuccessResponse[Seq[Pet]](200)
.withErrorResponse[Unit](400)
@ -58,11 +58,11 @@ object PetApi {
* code 200 : Seq[Pet] (successful operation)
* code 400 : (Invalid tag value)
*
* @param Tags Tags to filter by
* @param tags Tags to filter by
*/
def findPetsByTags(Tags: Seq[String]): ApiRequest[Seq[Pet]] =
def findPetsByTags(tags: Seq[String]): ApiRequest[Seq[Pet]] =
ApiRequest[Seq[Pet]](ApiMethods.GET, "http://petstore.swagger.io/v2", "/pet/findByTags", "application/json")
.withQueryParam("tags", ArrayValues(Tags, MULTI))
.withQueryParam("tags", ArrayValues(tags, MULTI))
.withSuccessResponse[Seq[Pet]](200)
.withErrorResponse[Unit](400)
@ -77,12 +77,12 @@ object PetApi {
* Available security schemes:
* api_key (apiKey)
*
* @param PetId ID of pet that needs to be fetched
* @param petId ID of pet that needs to be fetched
*/
def getPetById(PetId: Long)(implicit apiKey: ApiKeyValue): ApiRequest[Pet] =
def getPetById(petId: Long)(implicit apiKey: ApiKeyValue): ApiRequest[Pet] =
ApiRequest[Pet](ApiMethods.GET, "http://petstore.swagger.io/v2", "/pet/{petId}", "application/json")
.withApiKey(apiKey, "api_key", HEADER)
.withPathParam("petId", PetId)
.withPathParam("petId", petId)
.withErrorResponse[Unit](404)
.withSuccessResponse[Pet](200)
.withErrorResponse[Unit](400)
@ -92,15 +92,15 @@ object PetApi {
* Expected answers:
* code 405 : (Invalid input)
*
* @param PetId ID of pet that needs to be updated
* @param Name Updated name of the pet
* @param Status Updated status of the pet
* @param petId ID of pet that needs to be updated
* @param name Updated name of the pet
* @param status Updated status of the pet
*/
def updatePetWithForm(PetId: String, Name: Option[String] = None, Status: Option[String] = None): ApiRequest[Unit] =
def updatePetWithForm(petId: String, name: Option[String] = None, status: Option[String] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/pet/{petId}", "application/x-www-form-urlencoded")
.withFormParam("name", Name)
.withFormParam("status", Status)
.withPathParam("petId", PetId)
.withFormParam("name", name)
.withFormParam("status", status)
.withPathParam("petId", petId)
.withErrorResponse[Unit](405)
/**
@ -108,13 +108,13 @@ object PetApi {
* Expected answers:
* code 400 : (Invalid pet value)
*
* @param ApiKey
* @param PetId Pet id to delete
* @param apiKey
* @param petId Pet id to delete
*/
def deletePet(ApiKey: Option[String] = None, PetId: Long): ApiRequest[Unit] =
def deletePet(apiKey: Option[String] = None, petId: Long): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.DELETE, "http://petstore.swagger.io/v2", "/pet/{petId}", "application/json")
.withPathParam("petId", PetId)
.withHeaderParam("api_key", ApiKey)
.withPathParam("petId", petId)
.withHeaderParam("api_key", apiKey)
.withErrorResponse[Unit](400)
/**
@ -122,15 +122,15 @@ object PetApi {
* Expected answers:
* code 0 : (successful operation)
*
* @param PetId ID of pet to update
* @param AdditionalMetadata Additional data to pass to server
* @param File file to upload
* @param petId ID of pet to update
* @param additionalMetadata Additional data to pass to server
* @param file file to upload
*/
def uploadFile(PetId: Long, AdditionalMetadata: Option[String] = None, File: Option[File] = None): ApiRequest[Unit] =
def uploadFile(petId: Long, additionalMetadata: Option[String] = None, file: Option[File] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/pet/{petId}/uploadImage", "multipart/form-data")
.withFormParam("additionalMetadata", AdditionalMetadata)
.withFormParam("file", File)
.withPathParam("petId", PetId)
.withFormParam("additionalMetadata", additionalMetadata)
.withFormParam("file", file)
.withPathParam("petId", petId)
.withDefaultSuccessResponse[Unit]

View File

@ -27,11 +27,11 @@ object StoreApi {
* code 200 : Order (successful operation)
* code 400 : (Invalid Order)
*
* @param Body order placed for purchasing the pet
* @param body order placed for purchasing the pet
*/
def placeOrder(Body: Option[Order] = None): ApiRequest[Order] =
def placeOrder(body: Option[Order] = None): ApiRequest[Order] =
ApiRequest[Order](ApiMethods.POST, "http://petstore.swagger.io/v2", "/store/order", "application/json")
.withBody(Body)
.withBody(body)
.withSuccessResponse[Order](200)
.withErrorResponse[Unit](400)
@ -43,11 +43,11 @@ object StoreApi {
* code 200 : Order (successful operation)
* code 400 : (Invalid ID supplied)
*
* @param OrderId ID of pet that needs to be fetched
* @param orderId ID of pet that needs to be fetched
*/
def getOrderById(OrderId: String): ApiRequest[Order] =
def getOrderById(orderId: String): ApiRequest[Order] =
ApiRequest[Order](ApiMethods.GET, "http://petstore.swagger.io/v2", "/store/order/{orderId}", "application/json")
.withPathParam("orderId", OrderId)
.withPathParam("orderId", orderId)
.withErrorResponse[Unit](404)
.withSuccessResponse[Order](200)
.withErrorResponse[Unit](400)
@ -59,11 +59,11 @@ object StoreApi {
* code 404 : (Order not found)
* code 400 : (Invalid ID supplied)
*
* @param OrderId ID of the order that needs to be deleted
* @param orderId ID of the order that needs to be deleted
*/
def deleteOrder(OrderId: String): ApiRequest[Unit] =
def deleteOrder(orderId: String): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.DELETE, "http://petstore.swagger.io/v2", "/store/order/{orderId}", "application/json")
.withPathParam("orderId", OrderId)
.withPathParam("orderId", orderId)
.withErrorResponse[Unit](404)
.withErrorResponse[Unit](400)

View File

@ -13,11 +13,11 @@ object UserApi {
* Expected answers:
* code 0 : (successful operation)
*
* @param Body Created user object
* @param body Created user object
*/
def createUser(Body: Option[User] = None): ApiRequest[Unit] =
def createUser(body: Option[User] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user", "application/json")
.withBody(Body)
.withBody(body)
.withDefaultSuccessResponse[Unit]
/**
@ -25,11 +25,11 @@ object UserApi {
* Expected answers:
* code 0 : (successful operation)
*
* @param Body List of user object
* @param body List of user object
*/
def createUsersWithArrayInput(Body: Seq[User]): ApiRequest[Unit] =
def createUsersWithArrayInput(body: Seq[User]): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user/createWithArray", "application/json")
.withBody(Body)
.withBody(body)
.withDefaultSuccessResponse[Unit]
/**
@ -37,11 +37,11 @@ object UserApi {
* Expected answers:
* code 0 : (successful operation)
*
* @param Body List of user object
* @param body List of user object
*/
def createUsersWithListInput(Body: Seq[User]): ApiRequest[Unit] =
def createUsersWithListInput(body: Seq[User]): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user/createWithList", "application/json")
.withBody(Body)
.withBody(body)
.withDefaultSuccessResponse[Unit]
/**
@ -50,13 +50,13 @@ object UserApi {
* code 200 : String (successful operation)
* code 400 : (Invalid username/password supplied)
*
* @param Username The user name for login
* @param Password The password for login in clear text
* @param username The user name for login
* @param password The password for login in clear text
*/
def loginUser(Username: Option[String] = None, Password: Option[String] = None): ApiRequest[String] =
def loginUser(username: Option[String] = None, password: Option[String] = None): ApiRequest[String] =
ApiRequest[String](ApiMethods.GET, "http://petstore.swagger.io/v2", "/user/login", "application/json")
.withQueryParam("username", Username)
.withQueryParam("password", Password)
.withQueryParam("username", username)
.withQueryParam("password", password)
.withSuccessResponse[String](200)
.withErrorResponse[Unit](400)
@ -76,11 +76,11 @@ object UserApi {
* code 200 : User (successful operation)
* code 400 : (Invalid username supplied)
*
* @param Username The name that needs to be fetched. Use user1 for testing.
* @param username The name that needs to be fetched. Use user1 for testing.
*/
def getUserByName(Username: String): ApiRequest[User] =
def getUserByName(username: String): ApiRequest[User] =
ApiRequest[User](ApiMethods.GET, "http://petstore.swagger.io/v2", "/user/{username}", "application/json")
.withPathParam("username", Username)
.withPathParam("username", username)
.withErrorResponse[Unit](404)
.withSuccessResponse[User](200)
.withErrorResponse[Unit](400)
@ -92,13 +92,13 @@ object UserApi {
* code 404 : (User not found)
* code 400 : (Invalid user supplied)
*
* @param Username name that need to be deleted
* @param Body Updated user object
* @param username name that need to be deleted
* @param body Updated user object
*/
def updateUser(Username: String, Body: Option[User] = None): ApiRequest[Unit] =
def updateUser(username: String, body: Option[User] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.PUT, "http://petstore.swagger.io/v2", "/user/{username}", "application/json")
.withBody(Body)
.withPathParam("username", Username)
.withBody(body)
.withPathParam("username", username)
.withErrorResponse[Unit](404)
.withErrorResponse[Unit](400)
@ -109,11 +109,11 @@ object UserApi {
* code 404 : (User not found)
* code 400 : (Invalid username supplied)
*
* @param Username The name that needs to be deleted
* @param username The name that needs to be deleted
*/
def deleteUser(Username: String): ApiRequest[Unit] =
def deleteUser(username: String): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.DELETE, "http://petstore.swagger.io/v2", "/user/{username}", "application/json")
.withPathParam("username", Username)
.withPathParam("username", username)
.withErrorResponse[Unit](404)
.withErrorResponse[Unit](400)

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class Category (
Id: Option[Long],
Name: Option[String])
id: Option[Long],
name: Option[String])
extends ApiModel

View File

@ -5,13 +5,13 @@ import org.joda.time.DateTime
case class Order (
Id: Option[Long],
PetId: Option[Long],
Quantity: Option[Int],
ShipDate: Option[DateTime],
id: Option[Long],
petId: Option[Long],
quantity: Option[Int],
shipDate: Option[DateTime],
/* Order Status */
Status: Option[OrderEnums.Status],
Complete: Option[Boolean])
status: Option[OrderEnums.Status],
complete: Option[Boolean])
extends ApiModel
object OrderEnums {

View File

@ -5,13 +5,13 @@ import org.joda.time.DateTime
case class Pet (
Id: Option[Long],
Category: Option[Category],
Name: String,
PhotoUrls: Seq[String],
Tags: Option[Seq[Tag]],
id: Option[Long],
category: Option[Category],
name: String,
photoUrls: Seq[String],
tags: Option[Seq[Tag]],
/* pet status in the store */
Status: Option[PetEnums.Status])
status: Option[PetEnums.Status])
extends ApiModel
object PetEnums {

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class Tag (
Id: Option[Long],
Name: Option[String])
id: Option[Long],
name: Option[String])
extends ApiModel

View File

@ -5,15 +5,15 @@ import org.joda.time.DateTime
case class User (
Id: Option[Long],
Username: Option[String],
FirstName: Option[String],
LastName: Option[String],
Email: Option[String],
Password: Option[String],
Phone: Option[String],
id: Option[Long],
username: Option[String],
firstName: Option[String],
lastName: Option[String],
email: Option[String],
password: Option[String],
phone: Option[String],
/* User Status */
UserStatus: Option[Int])
userStatus: Option[Int])
extends ApiModel

View File

@ -18,11 +18,11 @@ object AccountApi {
* code 400 : (No token supplied.)
* code 404 : (No API account with supplied token.)
*
* @param ApiKey Wordnik authentication token
* @param apiKey Wordnik authentication token
*/
def getApiTokenStatus(ApiKey: Option[String] = None): ApiRequest[ApiTokenStatus] =
def getApiTokenStatus(apiKey: Option[String] = None): ApiRequest[ApiTokenStatus] =
ApiRequest[ApiTokenStatus](ApiMethods.GET, "https://api.wordnik.com/v4", "/account.json/apiTokenStatus", "application/json")
.withHeaderParam("api_key", ApiKey)
.withHeaderParam("api_key", apiKey)
.withSuccessResponse[ApiTokenStatus](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](404)
@ -35,13 +35,13 @@ object AccountApi {
* code 403 : (Account not available.)
* code 404 : (User not found.)
*
* @param Username A confirmed Wordnik username
* @param Password The user's password
* @param username A confirmed Wordnik username
* @param password The user's password
*/
def authenticate(Username: String, Password: String): ApiRequest[AuthenticationToken] =
def authenticate(username: String, password: String): ApiRequest[AuthenticationToken] =
ApiRequest[AuthenticationToken](ApiMethods.GET, "https://api.wordnik.com/v4", "/account.json/authenticate/{username}", "application/json")
.withQueryParam("password", Password)
.withPathParam("username", Username)
.withQueryParam("password", password)
.withPathParam("username", username)
.withSuccessResponse[AuthenticationToken](200)
.withErrorResponse[Unit](403)
.withErrorResponse[Unit](404)
@ -54,13 +54,13 @@ object AccountApi {
* code 403 : (Account not available.)
* code 404 : (User not found.)
*
* @param Username A confirmed Wordnik username
* @param Body The user's password
* @param username A confirmed Wordnik username
* @param body The user's password
*/
def authenticatePost(Username: String, Body: String): ApiRequest[AuthenticationToken] =
def authenticatePost(username: String, body: String): ApiRequest[AuthenticationToken] =
ApiRequest[AuthenticationToken](ApiMethods.POST, "https://api.wordnik.com/v4", "/account.json/authenticate/{username}", "application/json")
.withBody(Body)
.withPathParam("username", Username)
.withBody(body)
.withPathParam("username", username)
.withSuccessResponse[AuthenticationToken](200)
.withErrorResponse[Unit](403)
.withErrorResponse[Unit](404)
@ -73,11 +73,11 @@ object AccountApi {
* code 403 : (Not logged in.)
* code 404 : (User not found.)
*
* @param AuthToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
* @param authToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
*/
def getLoggedInUser(AuthToken: String): ApiRequest[User] =
def getLoggedInUser(authToken: String): ApiRequest[User] =
ApiRequest[User](ApiMethods.GET, "https://api.wordnik.com/v4", "/account.json/user", "application/json")
.withHeaderParam("auth_token", AuthToken)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[User](200)
.withErrorResponse[Unit](403)
.withErrorResponse[Unit](404)
@ -90,15 +90,15 @@ object AccountApi {
* code 403 : (Not authenticated.)
* code 404 : (User account not found.)
*
* @param AuthToken auth_token of logged-in user
* @param Skip Results to skip
* @param Limit Maximum number of results to return
* @param authToken auth_token of logged-in user
* @param skip Results to skip
* @param limit Maximum number of results to return
*/
def getWordListsForLoggedInUser(AuthToken: String, Skip: Option[Int] = None, Limit: Option[Int] = None): ApiRequest[Seq[WordList]] =
def getWordListsForLoggedInUser(authToken: String, skip: Option[Int] = None, limit: Option[Int] = None): ApiRequest[Seq[WordList]] =
ApiRequest[Seq[WordList]](ApiMethods.GET, "https://api.wordnik.com/v4", "/account.json/wordLists", "application/json")
.withQueryParam("skip", Skip)
.withQueryParam("limit", Limit)
.withHeaderParam("auth_token", AuthToken)
.withQueryParam("skip", skip)
.withQueryParam("limit", limit)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[Seq[WordList]](200)
.withErrorResponse[Unit](403)
.withErrorResponse[Unit](404)

View File

@ -19,15 +19,15 @@ object WordApi {
* code 200 : WordObject (success)
* code 400 : (Invalid word supplied.)
*
* @param Word String value of WordObject to return
* @param UseCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param IncludeSuggestions Return suggestions (for correct spelling, case variants, etc.)
* @param word String value of WordObject to return
* @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param includeSuggestions Return suggestions (for correct spelling, case variants, etc.)
*/
def getWord(Word: String, UseCanonical: Option[String] = None, IncludeSuggestions: Option[String] = None): ApiRequest[WordObject] =
def getWord(word: String, useCanonical: Option[String] = None, includeSuggestions: Option[String] = None): ApiRequest[WordObject] =
ApiRequest[WordObject](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}", "application/json")
.withQueryParam("useCanonical", UseCanonical)
.withQueryParam("includeSuggestions", IncludeSuggestions)
.withPathParam("word", Word)
.withQueryParam("useCanonical", useCanonical)
.withQueryParam("includeSuggestions", includeSuggestions)
.withPathParam("word", word)
.withSuccessResponse[WordObject](200)
.withErrorResponse[Unit](400)
@ -38,15 +38,15 @@ object WordApi {
* code 200 : Seq[AudioFile] (success)
* code 400 : (Invalid word supplied.)
*
* @param Word Word to get audio for.
* @param UseCanonical Use the canonical form of the word
* @param Limit Maximum number of results to return
* @param word Word to get audio for.
* @param useCanonical Use the canonical form of the word
* @param limit Maximum number of results to return
*/
def getAudio(Word: String, UseCanonical: Option[String] = None, Limit: Option[Int] = None): ApiRequest[Seq[AudioFile]] =
def getAudio(word: String, useCanonical: Option[String] = None, limit: Option[Int] = None): ApiRequest[Seq[AudioFile]] =
ApiRequest[Seq[AudioFile]](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/audio", "application/json")
.withQueryParam("useCanonical", UseCanonical)
.withQueryParam("limit", Limit)
.withPathParam("word", Word)
.withQueryParam("useCanonical", useCanonical)
.withQueryParam("limit", limit)
.withPathParam("word", word)
.withSuccessResponse[Seq[AudioFile]](200)
.withErrorResponse[Unit](400)
@ -58,23 +58,23 @@ object WordApi {
* code 400 : (Invalid word supplied.)
* code 404 : (No definitions found.)
*
* @param Word Word to return definitions for
* @param Limit Maximum number of results to return
* @param PartOfSpeech CSV list of part-of-speech types
* @param IncludeRelated Return related words with definitions
* @param SourceDictionaries Source dictionary to return definitions from. If 'all' is received, results are returned from all sources. If multiple values are received (e.g. 'century,wiktionary'), results are returned from the first specified dictionary that has definitions. If left blank, results are returned from the first dictionary that has definitions. By default, dictionaries are searched in this order: ahd, wiktionary, webster, century, wordnet
* @param UseCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param IncludeTags Return a closed set of XML tags in response
* @param word Word to return definitions for
* @param limit Maximum number of results to return
* @param partOfSpeech CSV list of part-of-speech types
* @param includeRelated Return related words with definitions
* @param sourceDictionaries Source dictionary to return definitions from. If 'all' is received, results are returned from all sources. If multiple values are received (e.g. 'century,wiktionary'), results are returned from the first specified dictionary that has definitions. If left blank, results are returned from the first dictionary that has definitions. By default, dictionaries are searched in this order: ahd, wiktionary, webster, century, wordnet
* @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param includeTags Return a closed set of XML tags in response
*/
def getDefinitions(Word: String, Limit: Option[Int] = None, PartOfSpeech: Option[String] = None, IncludeRelated: Option[String] = None, SourceDictionaries: Seq[String], UseCanonical: Option[String] = None, IncludeTags: Option[String] = None): ApiRequest[Seq[Definition]] =
def getDefinitions(word: String, limit: Option[Int] = None, partOfSpeech: Option[String] = None, includeRelated: Option[String] = None, sourceDictionaries: Seq[String], useCanonical: Option[String] = None, includeTags: Option[String] = None): ApiRequest[Seq[Definition]] =
ApiRequest[Seq[Definition]](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/definitions", "application/json")
.withQueryParam("limit", Limit)
.withQueryParam("partOfSpeech", PartOfSpeech)
.withQueryParam("includeRelated", IncludeRelated)
.withQueryParam("sourceDictionaries", ArrayValues(SourceDictionaries, CSV))
.withQueryParam("useCanonical", UseCanonical)
.withQueryParam("includeTags", IncludeTags)
.withPathParam("word", Word)
.withQueryParam("limit", limit)
.withQueryParam("partOfSpeech", partOfSpeech)
.withQueryParam("includeRelated", includeRelated)
.withQueryParam("sourceDictionaries", ArrayValues(sourceDictionaries, CSV))
.withQueryParam("useCanonical", useCanonical)
.withQueryParam("includeTags", includeTags)
.withPathParam("word", word)
.withSuccessResponse[Seq[Definition]](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](404)
@ -87,13 +87,13 @@ object WordApi {
* code 400 : (Invalid word supplied.)
* code 404 : (No definitions found.)
*
* @param Word Word to return
* @param UseCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param word Word to return
* @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
*/
def getEtymologies(Word: String, UseCanonical: Option[String] = None): ApiRequest[Seq[String]] =
def getEtymologies(word: String, useCanonical: Option[String] = None): ApiRequest[Seq[String]] =
ApiRequest[Seq[String]](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/etymologies", "application/json")
.withQueryParam("useCanonical", UseCanonical)
.withPathParam("word", Word)
.withQueryParam("useCanonical", useCanonical)
.withPathParam("word", word)
.withSuccessResponse[Seq[String]](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](404)
@ -105,19 +105,19 @@ object WordApi {
* code 200 : (success)
* code 400 : (Invalid word supplied.)
*
* @param Word Word to return examples for
* @param IncludeDuplicates Show duplicate examples from different sources
* @param UseCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param Skip Results to skip
* @param Limit Maximum number of results to return
* @param word Word to return examples for
* @param includeDuplicates Show duplicate examples from different sources
* @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param skip Results to skip
* @param limit Maximum number of results to return
*/
def getExamples(Word: String, IncludeDuplicates: Option[String] = None, UseCanonical: Option[String] = None, Skip: Option[Int] = None, Limit: Option[Int] = None): ApiRequest[Unit] =
def getExamples(word: String, includeDuplicates: Option[String] = None, useCanonical: Option[String] = None, skip: Option[Int] = None, limit: Option[Int] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/examples", "application/json")
.withQueryParam("includeDuplicates", IncludeDuplicates)
.withQueryParam("useCanonical", UseCanonical)
.withQueryParam("skip", Skip)
.withQueryParam("limit", Limit)
.withPathParam("word", Word)
.withQueryParam("includeDuplicates", includeDuplicates)
.withQueryParam("useCanonical", useCanonical)
.withQueryParam("skip", skip)
.withQueryParam("limit", limit)
.withPathParam("word", word)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
@ -129,17 +129,17 @@ object WordApi {
* code 400 : (Invalid word supplied.)
* code 404 : (No results.)
*
* @param Word Word to return
* @param UseCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param StartYear Starting Year
* @param EndYear Ending Year
* @param word Word to return
* @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param startYear Starting Year
* @param endYear Ending Year
*/
def getWordFrequency(Word: String, UseCanonical: Option[String] = None, StartYear: Option[Int] = None, EndYear: Option[Int] = None): ApiRequest[FrequencySummary] =
def getWordFrequency(word: String, useCanonical: Option[String] = None, startYear: Option[Int] = None, endYear: Option[Int] = None): ApiRequest[FrequencySummary] =
ApiRequest[FrequencySummary](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/frequency", "application/json")
.withQueryParam("useCanonical", UseCanonical)
.withQueryParam("startYear", StartYear)
.withQueryParam("endYear", EndYear)
.withPathParam("word", Word)
.withQueryParam("useCanonical", useCanonical)
.withQueryParam("startYear", startYear)
.withQueryParam("endYear", endYear)
.withPathParam("word", word)
.withSuccessResponse[FrequencySummary](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](404)
@ -151,17 +151,17 @@ object WordApi {
* code 200 : (success)
* code 400 : (Invalid word supplied.)
*
* @param Word Word to get syllables for
* @param UseCanonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param SourceDictionary Get from a single dictionary. Valid options: ahd, century, wiktionary, webster, and wordnet.
* @param Limit Maximum number of results to return
* @param word Word to get syllables for
* @param useCanonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param sourceDictionary Get from a single dictionary. Valid options: ahd, century, wiktionary, webster, and wordnet.
* @param limit Maximum number of results to return
*/
def getHyphenation(Word: String, UseCanonical: Option[String] = None, SourceDictionary: Option[String] = None, Limit: Option[Int] = None): ApiRequest[Unit] =
def getHyphenation(word: String, useCanonical: Option[String] = None, sourceDictionary: Option[String] = None, limit: Option[Int] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/hyphenation", "application/json")
.withQueryParam("useCanonical", UseCanonical)
.withQueryParam("sourceDictionary", SourceDictionary)
.withQueryParam("limit", Limit)
.withPathParam("word", Word)
.withQueryParam("useCanonical", useCanonical)
.withQueryParam("sourceDictionary", sourceDictionary)
.withQueryParam("limit", limit)
.withPathParam("word", word)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
@ -172,17 +172,17 @@ object WordApi {
* code 200 : Seq[Bigram] (success)
* code 400 : (Invalid word supplied.)
*
* @param Word Word to fetch phrases for
* @param Limit Maximum number of results to return
* @param Wlmi Minimum WLMI for the phrase
* @param UseCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param word Word to fetch phrases for
* @param limit Maximum number of results to return
* @param wlmi Minimum WLMI for the phrase
* @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
*/
def getPhrases(Word: String, Limit: Option[Int] = None, Wlmi: Option[Int] = None, UseCanonical: Option[String] = None): ApiRequest[Seq[Bigram]] =
def getPhrases(word: String, limit: Option[Int] = None, wlmi: Option[Int] = None, useCanonical: Option[String] = None): ApiRequest[Seq[Bigram]] =
ApiRequest[Seq[Bigram]](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/phrases", "application/json")
.withQueryParam("limit", Limit)
.withQueryParam("wlmi", Wlmi)
.withQueryParam("useCanonical", UseCanonical)
.withPathParam("word", Word)
.withQueryParam("limit", limit)
.withQueryParam("wlmi", wlmi)
.withQueryParam("useCanonical", useCanonical)
.withPathParam("word", word)
.withSuccessResponse[Seq[Bigram]](200)
.withErrorResponse[Unit](400)
@ -193,19 +193,19 @@ object WordApi {
* code 200 : (success)
* code 400 : (Invalid word supplied.)
*
* @param Word Word to get pronunciations for
* @param UseCanonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param SourceDictionary Get from a single dictionary
* @param TypeFormat Text pronunciation type
* @param Limit Maximum number of results to return
* @param word Word to get pronunciations for
* @param useCanonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param sourceDictionary Get from a single dictionary
* @param typeFormat Text pronunciation type
* @param limit Maximum number of results to return
*/
def getTextPronunciations(Word: String, UseCanonical: Option[String] = None, SourceDictionary: Option[String] = None, TypeFormat: Option[String] = None, Limit: Option[Int] = None): ApiRequest[Unit] =
def getTextPronunciations(word: String, useCanonical: Option[String] = None, sourceDictionary: Option[String] = None, typeFormat: Option[String] = None, limit: Option[Int] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/pronunciations", "application/json")
.withQueryParam("useCanonical", UseCanonical)
.withQueryParam("sourceDictionary", SourceDictionary)
.withQueryParam("typeFormat", TypeFormat)
.withQueryParam("limit", Limit)
.withPathParam("word", Word)
.withQueryParam("useCanonical", useCanonical)
.withQueryParam("sourceDictionary", sourceDictionary)
.withQueryParam("typeFormat", typeFormat)
.withQueryParam("limit", limit)
.withPathParam("word", word)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
@ -216,17 +216,17 @@ object WordApi {
* code 200 : (success)
* code 400 : (Invalid word supplied.)
*
* @param Word Word to fetch relationships for
* @param UseCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param RelationshipTypes Limits the total results per type of relationship type
* @param LimitPerRelationshipType Restrict to the supplied relationship types
* @param word Word to fetch relationships for
* @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param relationshipTypes Limits the total results per type of relationship type
* @param limitPerRelationshipType Restrict to the supplied relationship types
*/
def getRelatedWords(Word: String, UseCanonical: Option[String] = None, RelationshipTypes: Option[String] = None, LimitPerRelationshipType: Option[Int] = None): ApiRequest[Unit] =
def getRelatedWords(word: String, useCanonical: Option[String] = None, relationshipTypes: Option[String] = None, limitPerRelationshipType: Option[Int] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/relatedWords", "application/json")
.withQueryParam("useCanonical", UseCanonical)
.withQueryParam("relationshipTypes", RelationshipTypes)
.withQueryParam("limitPerRelationshipType", LimitPerRelationshipType)
.withPathParam("word", Word)
.withQueryParam("useCanonical", useCanonical)
.withQueryParam("relationshipTypes", relationshipTypes)
.withQueryParam("limitPerRelationshipType", limitPerRelationshipType)
.withPathParam("word", word)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
@ -237,13 +237,13 @@ object WordApi {
* code 200 : Example (success)
* code 400 : (Invalid word supplied.)
*
* @param Word Word to fetch examples for
* @param UseCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
* @param word Word to fetch examples for
* @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
*/
def getTopExample(Word: String, UseCanonical: Option[String] = None): ApiRequest[Example] =
def getTopExample(word: String, useCanonical: Option[String] = None): ApiRequest[Example] =
ApiRequest[Example](ApiMethods.GET, "https://api.wordnik.com/v4", "/word.json/{word}/topExample", "application/json")
.withQueryParam("useCanonical", UseCanonical)
.withPathParam("word", Word)
.withQueryParam("useCanonical", useCanonical)
.withPathParam("word", word)
.withSuccessResponse[Example](200)
.withErrorResponse[Unit](400)

View File

@ -17,13 +17,13 @@ object WordListApi {
* code 403 : (Not Authorized to access WordList)
* code 404 : (WordList not found)
*
* @param Permalink permalink of WordList to fetch
* @param AuthToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
* @param permalink permalink of WordList to fetch
* @param authToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
*/
def getWordListByPermalink(Permalink: String, AuthToken: String): ApiRequest[WordList] =
def getWordListByPermalink(permalink: String, authToken: String): ApiRequest[WordList] =
ApiRequest[WordList](ApiMethods.GET, "https://api.wordnik.com/v4", "/wordList.json/{permalink}", "application/json")
.withPathParam("permalink", Permalink)
.withHeaderParam("auth_token", AuthToken)
.withPathParam("permalink", permalink)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[WordList](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](403)
@ -38,15 +38,15 @@ object WordListApi {
* code 403 : (Not Authorized to update WordList)
* code 404 : (WordList not found)
*
* @param Permalink permalink of WordList to update
* @param Body Updated WordList
* @param AuthToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
* @param permalink permalink of WordList to update
* @param body Updated WordList
* @param authToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
*/
def updateWordList(Permalink: String, Body: Option[WordList] = None, AuthToken: String): ApiRequest[Unit] =
def updateWordList(permalink: String, body: Option[WordList] = None, authToken: String): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.PUT, "https://api.wordnik.com/v4", "/wordList.json/{permalink}", "application/json")
.withBody(Body)
.withPathParam("permalink", Permalink)
.withHeaderParam("auth_token", AuthToken)
.withBody(body)
.withPathParam("permalink", permalink)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](403)
@ -61,13 +61,13 @@ object WordListApi {
* code 403 : (Not Authorized to delete WordList)
* code 404 : (WordList not found)
*
* @param Permalink ID of WordList to delete
* @param AuthToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
* @param permalink ID of WordList to delete
* @param authToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
*/
def deleteWordList(Permalink: String, AuthToken: String): ApiRequest[Unit] =
def deleteWordList(permalink: String, authToken: String): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.DELETE, "https://api.wordnik.com/v4", "/wordList.json/{permalink}", "application/json")
.withPathParam("permalink", Permalink)
.withHeaderParam("auth_token", AuthToken)
.withPathParam("permalink", permalink)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](403)
@ -82,15 +82,15 @@ object WordListApi {
* code 403 : (Not Authorized to modify WordList)
* code 404 : (WordList not found)
*
* @param Permalink permalink of WordList to use
* @param Body Words to remove from WordList
* @param AuthToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
* @param permalink permalink of WordList to use
* @param body Words to remove from WordList
* @param authToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
*/
def deleteWordsFromWordList(Permalink: String, Body: Seq[StringValue], AuthToken: String): ApiRequest[Unit] =
def deleteWordsFromWordList(permalink: String, body: Seq[StringValue], authToken: String): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.POST, "https://api.wordnik.com/v4", "/wordList.json/{permalink}/deleteWords", "application/json")
.withBody(Body)
.withPathParam("permalink", Permalink)
.withHeaderParam("auth_token", AuthToken)
.withBody(body)
.withPathParam("permalink", permalink)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](403)
@ -105,21 +105,21 @@ object WordListApi {
* code 403 : (Not Authorized to access WordList)
* code 404 : (WordList not found)
*
* @param Permalink ID of WordList to use
* @param SortBy Field to sort by
* @param SortOrder Direction to sort
* @param Skip Results to skip
* @param Limit Maximum number of results to return
* @param AuthToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
* @param permalink ID of WordList to use
* @param sortBy Field to sort by
* @param sortOrder Direction to sort
* @param skip Results to skip
* @param limit Maximum number of results to return
* @param authToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
*/
def getWordListWords(Permalink: String, SortBy: Option[String] = None, SortOrder: Option[String] = None, Skip: Option[Int] = None, Limit: Option[Int] = None, AuthToken: String): ApiRequest[Unit] =
def getWordListWords(permalink: String, sortBy: Option[String] = None, sortOrder: Option[String] = None, skip: Option[Int] = None, limit: Option[Int] = None, authToken: String): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.GET, "https://api.wordnik.com/v4", "/wordList.json/{permalink}/words", "application/json")
.withQueryParam("sortBy", SortBy)
.withQueryParam("sortOrder", SortOrder)
.withQueryParam("skip", Skip)
.withQueryParam("limit", Limit)
.withPathParam("permalink", Permalink)
.withHeaderParam("auth_token", AuthToken)
.withQueryParam("sortBy", sortBy)
.withQueryParam("sortOrder", sortOrder)
.withQueryParam("skip", skip)
.withQueryParam("limit", limit)
.withPathParam("permalink", permalink)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](403)
@ -134,15 +134,15 @@ object WordListApi {
* code 403 : (Not Authorized to access WordList)
* code 404 : (WordList not found)
*
* @param Permalink permalink of WordList to user
* @param Body Array of words to add to WordList
* @param AuthToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
* @param permalink permalink of WordList to user
* @param body Array of words to add to WordList
* @param authToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
*/
def addWordsToWordList(Permalink: String, Body: Seq[StringValue], AuthToken: String): ApiRequest[Unit] =
def addWordsToWordList(permalink: String, body: Seq[StringValue], authToken: String): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.POST, "https://api.wordnik.com/v4", "/wordList.json/{permalink}/words", "application/json")
.withBody(Body)
.withPathParam("permalink", Permalink)
.withHeaderParam("auth_token", AuthToken)
.withBody(body)
.withPathParam("permalink", permalink)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](403)

View File

@ -16,13 +16,13 @@ object WordListsApi {
* code 403 : (Not authenticated)
* code 404 : (WordList owner not found)
*
* @param Body WordList to create
* @param AuthToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
* @param body WordList to create
* @param authToken The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)
*/
def createWordList(Body: Option[WordList] = None, AuthToken: String): ApiRequest[WordList] =
def createWordList(body: Option[WordList] = None, authToken: String): ApiRequest[WordList] =
ApiRequest[WordList](ApiMethods.POST, "https://api.wordnik.com/v4", "/wordLists.json", "application/json")
.withBody(Body)
.withHeaderParam("auth_token", AuthToken)
.withBody(body)
.withHeaderParam("auth_token", authToken)
.withSuccessResponse[WordList](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](403)

View File

@ -17,27 +17,27 @@ object WordsApi {
* code 200 : WordObject (success)
* code 404 : (No word found.)
*
* @param HasDictionaryDef Only return words with dictionary definitions
* @param IncludePartOfSpeech CSV part-of-speech values to include
* @param ExcludePartOfSpeech CSV part-of-speech values to exclude
* @param MinCorpusCount Minimum corpus frequency for terms
* @param MaxCorpusCount Maximum corpus frequency for terms
* @param MinDictionaryCount Minimum dictionary count
* @param MaxDictionaryCount Maximum dictionary count
* @param MinLength Minimum word length
* @param MaxLength Maximum word length
* @param hasDictionaryDef Only return words with dictionary definitions
* @param includePartOfSpeech CSV part-of-speech values to include
* @param excludePartOfSpeech CSV part-of-speech values to exclude
* @param minCorpusCount Minimum corpus frequency for terms
* @param maxCorpusCount Maximum corpus frequency for terms
* @param minDictionaryCount Minimum dictionary count
* @param maxDictionaryCount Maximum dictionary count
* @param minLength Minimum word length
* @param maxLength Maximum word length
*/
def getRandomWord(HasDictionaryDef: Option[String] = None, IncludePartOfSpeech: Option[String] = None, ExcludePartOfSpeech: Option[String] = None, MinCorpusCount: Option[Int] = None, MaxCorpusCount: Option[Int] = None, MinDictionaryCount: Option[Int] = None, MaxDictionaryCount: Option[Int] = None, MinLength: Option[Int] = None, MaxLength: Option[Int] = None): ApiRequest[WordObject] =
def getRandomWord(hasDictionaryDef: Option[String] = None, includePartOfSpeech: Option[String] = None, excludePartOfSpeech: Option[String] = None, minCorpusCount: Option[Int] = None, maxCorpusCount: Option[Int] = None, minDictionaryCount: Option[Int] = None, maxDictionaryCount: Option[Int] = None, minLength: Option[Int] = None, maxLength: Option[Int] = None): ApiRequest[WordObject] =
ApiRequest[WordObject](ApiMethods.GET, "https://api.wordnik.com/v4", "/words.json/randomWord", "application/json")
.withQueryParam("hasDictionaryDef", HasDictionaryDef)
.withQueryParam("includePartOfSpeech", IncludePartOfSpeech)
.withQueryParam("excludePartOfSpeech", ExcludePartOfSpeech)
.withQueryParam("minCorpusCount", MinCorpusCount)
.withQueryParam("maxCorpusCount", MaxCorpusCount)
.withQueryParam("minDictionaryCount", MinDictionaryCount)
.withQueryParam("maxDictionaryCount", MaxDictionaryCount)
.withQueryParam("minLength", MinLength)
.withQueryParam("maxLength", MaxLength)
.withQueryParam("hasDictionaryDef", hasDictionaryDef)
.withQueryParam("includePartOfSpeech", includePartOfSpeech)
.withQueryParam("excludePartOfSpeech", excludePartOfSpeech)
.withQueryParam("minCorpusCount", minCorpusCount)
.withQueryParam("maxCorpusCount", maxCorpusCount)
.withQueryParam("minDictionaryCount", minDictionaryCount)
.withQueryParam("maxDictionaryCount", maxDictionaryCount)
.withQueryParam("minLength", minLength)
.withQueryParam("maxLength", maxLength)
.withSuccessResponse[WordObject](200)
.withErrorResponse[Unit](404)
@ -49,33 +49,33 @@ object WordsApi {
* code 400 : (Invalid term supplied.)
* code 404 : (No results.)
*
* @param HasDictionaryDef Only return words with dictionary definitions
* @param IncludePartOfSpeech CSV part-of-speech values to include
* @param ExcludePartOfSpeech CSV part-of-speech values to exclude
* @param MinCorpusCount Minimum corpus frequency for terms
* @param MaxCorpusCount Maximum corpus frequency for terms
* @param MinDictionaryCount Minimum dictionary count
* @param MaxDictionaryCount Maximum dictionary count
* @param MinLength Minimum word length
* @param MaxLength Maximum word length
* @param SortBy Attribute to sort by
* @param SortOrder Sort direction
* @param Limit Maximum number of results to return
* @param hasDictionaryDef Only return words with dictionary definitions
* @param includePartOfSpeech CSV part-of-speech values to include
* @param excludePartOfSpeech CSV part-of-speech values to exclude
* @param minCorpusCount Minimum corpus frequency for terms
* @param maxCorpusCount Maximum corpus frequency for terms
* @param minDictionaryCount Minimum dictionary count
* @param maxDictionaryCount Maximum dictionary count
* @param minLength Minimum word length
* @param maxLength Maximum word length
* @param sortBy Attribute to sort by
* @param sortOrder Sort direction
* @param limit Maximum number of results to return
*/
def getRandomWords(HasDictionaryDef: Option[String] = None, IncludePartOfSpeech: Option[String] = None, ExcludePartOfSpeech: Option[String] = None, MinCorpusCount: Option[Int] = None, MaxCorpusCount: Option[Int] = None, MinDictionaryCount: Option[Int] = None, MaxDictionaryCount: Option[Int] = None, MinLength: Option[Int] = None, MaxLength: Option[Int] = None, SortBy: Option[String] = None, SortOrder: Option[String] = None, Limit: Option[Int] = None): ApiRequest[Unit] =
def getRandomWords(hasDictionaryDef: Option[String] = None, includePartOfSpeech: Option[String] = None, excludePartOfSpeech: Option[String] = None, minCorpusCount: Option[Int] = None, maxCorpusCount: Option[Int] = None, minDictionaryCount: Option[Int] = None, maxDictionaryCount: Option[Int] = None, minLength: Option[Int] = None, maxLength: Option[Int] = None, sortBy: Option[String] = None, sortOrder: Option[String] = None, limit: Option[Int] = None): ApiRequest[Unit] =
ApiRequest[Unit](ApiMethods.GET, "https://api.wordnik.com/v4", "/words.json/randomWords", "application/json")
.withQueryParam("hasDictionaryDef", HasDictionaryDef)
.withQueryParam("includePartOfSpeech", IncludePartOfSpeech)
.withQueryParam("excludePartOfSpeech", ExcludePartOfSpeech)
.withQueryParam("minCorpusCount", MinCorpusCount)
.withQueryParam("maxCorpusCount", MaxCorpusCount)
.withQueryParam("minDictionaryCount", MinDictionaryCount)
.withQueryParam("maxDictionaryCount", MaxDictionaryCount)
.withQueryParam("minLength", MinLength)
.withQueryParam("maxLength", MaxLength)
.withQueryParam("sortBy", SortBy)
.withQueryParam("sortOrder", SortOrder)
.withQueryParam("limit", Limit)
.withQueryParam("hasDictionaryDef", hasDictionaryDef)
.withQueryParam("includePartOfSpeech", includePartOfSpeech)
.withQueryParam("excludePartOfSpeech", excludePartOfSpeech)
.withQueryParam("minCorpusCount", minCorpusCount)
.withQueryParam("maxCorpusCount", maxCorpusCount)
.withQueryParam("minDictionaryCount", minDictionaryCount)
.withQueryParam("maxDictionaryCount", maxDictionaryCount)
.withQueryParam("minLength", minLength)
.withQueryParam("maxLength", maxLength)
.withQueryParam("sortBy", sortBy)
.withQueryParam("sortOrder", sortOrder)
.withQueryParam("limit", limit)
.withSuccessResponse[Unit](200)
.withErrorResponse[Unit](400)
.withErrorResponse[Unit](404)
@ -87,41 +87,41 @@ object WordsApi {
* code 200 : DefinitionSearchResults (success)
* code 400 : (Invalid term supplied.)
*
* @param Query Search term
* @param FindSenseForWord Restricts words and finds closest sense
* @param IncludeSourceDictionaries Only include these comma-delimited source dictionaries
* @param ExcludeSourceDictionaries Exclude these comma-delimited source dictionaries
* @param IncludePartOfSpeech Only include these comma-delimited parts of speech
* @param ExcludePartOfSpeech Exclude these comma-delimited parts of speech
* @param MinCorpusCount Minimum corpus frequency for terms
* @param MaxCorpusCount Maximum corpus frequency for terms
* @param MinLength Minimum word length
* @param MaxLength Maximum word length
* @param ExpandTerms Expand terms
* @param IncludeTags Return a closed set of XML tags in response
* @param SortBy Attribute to sort by
* @param SortOrder Sort direction
* @param Skip Results to skip
* @param Limit Maximum number of results to return
* @param query Search term
* @param findSenseForWord Restricts words and finds closest sense
* @param includeSourceDictionaries Only include these comma-delimited source dictionaries
* @param excludeSourceDictionaries Exclude these comma-delimited source dictionaries
* @param includePartOfSpeech Only include these comma-delimited parts of speech
* @param excludePartOfSpeech Exclude these comma-delimited parts of speech
* @param minCorpusCount Minimum corpus frequency for terms
* @param maxCorpusCount Maximum corpus frequency for terms
* @param minLength Minimum word length
* @param maxLength Maximum word length
* @param expandTerms Expand terms
* @param includeTags Return a closed set of XML tags in response
* @param sortBy Attribute to sort by
* @param sortOrder Sort direction
* @param skip Results to skip
* @param limit Maximum number of results to return
*/
def reverseDictionary(Query: String, FindSenseForWord: Option[String] = None, IncludeSourceDictionaries: Option[String] = None, ExcludeSourceDictionaries: Option[String] = None, IncludePartOfSpeech: Option[String] = None, ExcludePartOfSpeech: Option[String] = None, MinCorpusCount: Option[Int] = None, MaxCorpusCount: Option[Int] = None, MinLength: Option[Int] = None, MaxLength: Option[Int] = None, ExpandTerms: Option[String] = None, IncludeTags: Option[String] = None, SortBy: Option[String] = None, SortOrder: Option[String] = None, Skip: Option[String] = None, Limit: Option[Int] = None): ApiRequest[DefinitionSearchResults] =
def reverseDictionary(query: String, findSenseForWord: Option[String] = None, includeSourceDictionaries: Option[String] = None, excludeSourceDictionaries: Option[String] = None, includePartOfSpeech: Option[String] = None, excludePartOfSpeech: Option[String] = None, minCorpusCount: Option[Int] = None, maxCorpusCount: Option[Int] = None, minLength: Option[Int] = None, maxLength: Option[Int] = None, expandTerms: Option[String] = None, includeTags: Option[String] = None, sortBy: Option[String] = None, sortOrder: Option[String] = None, skip: Option[String] = None, limit: Option[Int] = None): ApiRequest[DefinitionSearchResults] =
ApiRequest[DefinitionSearchResults](ApiMethods.GET, "https://api.wordnik.com/v4", "/words.json/reverseDictionary", "application/json")
.withQueryParam("query", Query)
.withQueryParam("findSenseForWord", FindSenseForWord)
.withQueryParam("includeSourceDictionaries", IncludeSourceDictionaries)
.withQueryParam("excludeSourceDictionaries", ExcludeSourceDictionaries)
.withQueryParam("includePartOfSpeech", IncludePartOfSpeech)
.withQueryParam("excludePartOfSpeech", ExcludePartOfSpeech)
.withQueryParam("minCorpusCount", MinCorpusCount)
.withQueryParam("maxCorpusCount", MaxCorpusCount)
.withQueryParam("minLength", MinLength)
.withQueryParam("maxLength", MaxLength)
.withQueryParam("expandTerms", ExpandTerms)
.withQueryParam("includeTags", IncludeTags)
.withQueryParam("sortBy", SortBy)
.withQueryParam("sortOrder", SortOrder)
.withQueryParam("skip", Skip)
.withQueryParam("limit", Limit)
.withQueryParam("query", query)
.withQueryParam("findSenseForWord", findSenseForWord)
.withQueryParam("includeSourceDictionaries", includeSourceDictionaries)
.withQueryParam("excludeSourceDictionaries", excludeSourceDictionaries)
.withQueryParam("includePartOfSpeech", includePartOfSpeech)
.withQueryParam("excludePartOfSpeech", excludePartOfSpeech)
.withQueryParam("minCorpusCount", minCorpusCount)
.withQueryParam("maxCorpusCount", maxCorpusCount)
.withQueryParam("minLength", minLength)
.withQueryParam("maxLength", maxLength)
.withQueryParam("expandTerms", expandTerms)
.withQueryParam("includeTags", includeTags)
.withQueryParam("sortBy", sortBy)
.withQueryParam("sortOrder", sortOrder)
.withQueryParam("skip", skip)
.withQueryParam("limit", limit)
.withSuccessResponse[DefinitionSearchResults](200)
.withErrorResponse[Unit](400)
@ -132,33 +132,33 @@ object WordsApi {
* code 200 : WordSearchResults (success)
* code 400 : (Invalid query supplied.)
*
* @param Query Search query
* @param CaseSensitive Search case sensitive
* @param IncludePartOfSpeech Only include these comma-delimited parts of speech
* @param ExcludePartOfSpeech Exclude these comma-delimited parts of speech
* @param MinCorpusCount Minimum corpus frequency for terms
* @param MaxCorpusCount Maximum corpus frequency for terms
* @param MinDictionaryCount Minimum number of dictionary entries for words returned
* @param MaxDictionaryCount Maximum dictionary definition count
* @param MinLength Minimum word length
* @param MaxLength Maximum word length
* @param Skip Results to skip
* @param Limit Maximum number of results to return
* @param query Search query
* @param caseSensitive Search case sensitive
* @param includePartOfSpeech Only include these comma-delimited parts of speech
* @param excludePartOfSpeech Exclude these comma-delimited parts of speech
* @param minCorpusCount Minimum corpus frequency for terms
* @param maxCorpusCount Maximum corpus frequency for terms
* @param minDictionaryCount Minimum number of dictionary entries for words returned
* @param maxDictionaryCount Maximum dictionary definition count
* @param minLength Minimum word length
* @param maxLength Maximum word length
* @param skip Results to skip
* @param limit Maximum number of results to return
*/
def searchWords(Query: String, CaseSensitive: Option[String] = None, IncludePartOfSpeech: Option[String] = None, ExcludePartOfSpeech: Option[String] = None, MinCorpusCount: Option[Int] = None, MaxCorpusCount: Option[Int] = None, MinDictionaryCount: Option[Int] = None, MaxDictionaryCount: Option[Int] = None, MinLength: Option[Int] = None, MaxLength: Option[Int] = None, Skip: Option[Int] = None, Limit: Option[Int] = None): ApiRequest[WordSearchResults] =
def searchWords(query: String, caseSensitive: Option[String] = None, includePartOfSpeech: Option[String] = None, excludePartOfSpeech: Option[String] = None, minCorpusCount: Option[Int] = None, maxCorpusCount: Option[Int] = None, minDictionaryCount: Option[Int] = None, maxDictionaryCount: Option[Int] = None, minLength: Option[Int] = None, maxLength: Option[Int] = None, skip: Option[Int] = None, limit: Option[Int] = None): ApiRequest[WordSearchResults] =
ApiRequest[WordSearchResults](ApiMethods.GET, "https://api.wordnik.com/v4", "/words.json/search/{query}", "application/json")
.withQueryParam("caseSensitive", CaseSensitive)
.withQueryParam("includePartOfSpeech", IncludePartOfSpeech)
.withQueryParam("excludePartOfSpeech", ExcludePartOfSpeech)
.withQueryParam("minCorpusCount", MinCorpusCount)
.withQueryParam("maxCorpusCount", MaxCorpusCount)
.withQueryParam("minDictionaryCount", MinDictionaryCount)
.withQueryParam("maxDictionaryCount", MaxDictionaryCount)
.withQueryParam("minLength", MinLength)
.withQueryParam("maxLength", MaxLength)
.withQueryParam("skip", Skip)
.withQueryParam("limit", Limit)
.withPathParam("query", Query)
.withQueryParam("caseSensitive", caseSensitive)
.withQueryParam("includePartOfSpeech", includePartOfSpeech)
.withQueryParam("excludePartOfSpeech", excludePartOfSpeech)
.withQueryParam("minCorpusCount", minCorpusCount)
.withQueryParam("maxCorpusCount", maxCorpusCount)
.withQueryParam("minDictionaryCount", minDictionaryCount)
.withQueryParam("maxDictionaryCount", maxDictionaryCount)
.withQueryParam("minLength", minLength)
.withQueryParam("maxLength", maxLength)
.withQueryParam("skip", skip)
.withQueryParam("limit", limit)
.withPathParam("query", query)
.withSuccessResponse[WordSearchResults](200)
.withErrorResponse[Unit](400)
@ -168,11 +168,11 @@ object WordsApi {
* Expected answers:
* code 0 : WordOfTheDay (success)
*
* @param Date Fetches by date in yyyy-MM-dd
* @param date Fetches by date in yyyy-MM-dd
*/
def getWordOfTheDay(Date: Option[String] = None): ApiRequest[WordOfTheDay] =
def getWordOfTheDay(date: Option[String] = None): ApiRequest[WordOfTheDay] =
ApiRequest[WordOfTheDay](ApiMethods.GET, "https://api.wordnik.com/v4", "/words.json/wordOfTheDay", "application/json")
.withQueryParam("date", Date)
.withQueryParam("date", date)
.withDefaultSuccessResponse[WordOfTheDay]

View File

@ -5,12 +5,12 @@ import org.joda.time.DateTime
case class ApiTokenStatus (
Valid: Option[Boolean],
Token: Option[String],
ResetsInMillis: Option[Long],
RemainingCalls: Option[Long],
ExpiresInMillis: Option[Long],
TotalRequests: Option[Long])
valid: Option[Boolean],
token: Option[String],
resetsInMillis: Option[Long],
remainingCalls: Option[Long],
expiresInMillis: Option[Long],
totalRequests: Option[Long])
extends ApiModel

View File

@ -5,20 +5,20 @@ import org.joda.time.DateTime
case class AudioFile (
AttributionUrl: Option[String],
CommentCount: Option[Int],
VoteCount: Option[Int],
FileUrl: Option[String],
AudioType: Option[String],
Id: Option[Long],
Duration: Option[Double],
AttributionText: Option[String],
CreatedBy: Option[String],
Description: Option[String],
CreatedAt: Option[DateTime],
VoteWeightedAverage: Option[Float],
VoteAverage: Option[Float],
Word: Option[String])
attributionUrl: Option[String],
commentCount: Option[Int],
voteCount: Option[Int],
fileUrl: Option[String],
audioType: Option[String],
id: Option[Long],
duration: Option[Double],
attributionText: Option[String],
createdBy: Option[String],
description: Option[String],
createdAt: Option[DateTime],
voteWeightedAverage: Option[Float],
voteAverage: Option[Float],
word: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class AudioType (
Id: Option[Int],
Name: Option[String])
id: Option[Int],
name: Option[String])
extends ApiModel

View File

@ -5,9 +5,9 @@ import org.joda.time.DateTime
case class AuthenticationToken (
Token: Option[String],
UserId: Option[Long],
UserSignature: Option[String])
token: Option[String],
userId: Option[Long],
userSignature: Option[String])
extends ApiModel

View File

@ -5,11 +5,11 @@ import org.joda.time.DateTime
case class Bigram (
Count: Option[Long],
Gram2: Option[String],
Gram1: Option[String],
Wlmi: Option[Double],
Mi: Option[Double])
count: Option[Long],
gram2: Option[String],
gram1: Option[String],
wlmi: Option[Double],
mi: Option[Double])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class Category (
Id: Option[Long],
Name: Option[String])
id: Option[Long],
name: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class Citation (
Cite: Option[String],
Source: Option[String])
cite: Option[String],
source: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class ContentProvider (
Id: Option[Int],
Name: Option[String])
id: Option[Int],
name: Option[String])
extends ApiModel

View File

@ -5,22 +5,22 @@ import org.joda.time.DateTime
case class Definition (
ExtendedText: Option[String],
Text: Option[String],
SourceDictionary: Option[String],
Citations: Option[Seq[Citation]],
Labels: Option[Seq[Label]],
Score: Option[Float],
ExampleUses: Option[Seq[ExampleUsage]],
AttributionUrl: Option[String],
SeqString: Option[String],
AttributionText: Option[String],
RelatedWords: Option[Seq[Related]],
Sequence: Option[String],
Word: Option[String],
Notes: Option[Seq[Note]],
TextProns: Option[Seq[TextPron]],
PartOfSpeech: Option[String])
extendedText: Option[String],
text: Option[String],
sourceDictionary: Option[String],
citations: Option[Seq[Citation]],
labels: Option[Seq[Label]],
score: Option[Float],
exampleUses: Option[Seq[ExampleUsage]],
attributionUrl: Option[String],
seqString: Option[String],
attributionText: Option[String],
relatedWords: Option[Seq[Related]],
sequence: Option[String],
word: Option[String],
notes: Option[Seq[Note]],
textProns: Option[Seq[TextPron]],
partOfSpeech: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class DefinitionSearchResults (
Results: Option[Seq[Definition]],
TotalResults: Option[Int])
results: Option[Seq[Definition]],
totalResults: Option[Int])
extends ApiModel

View File

@ -5,18 +5,18 @@ import org.joda.time.DateTime
case class Example (
Id: Option[Long],
ExampleId: Option[Long],
Title: Option[String],
Text: Option[String],
Score: Option[ScoredWord],
Sentence: Option[Sentence],
Word: Option[String],
Provider: Option[ContentProvider],
Year: Option[Int],
Rating: Option[Float],
DocumentId: Option[Long],
Url: Option[String])
id: Option[Long],
exampleId: Option[Long],
title: Option[String],
text: Option[String],
score: Option[ScoredWord],
sentence: Option[Sentence],
word: Option[String],
provider: Option[ContentProvider],
year: Option[Int],
rating: Option[Float],
documentId: Option[Long],
url: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class ExampleSearchResults (
Facets: Option[Seq[Facet]],
Examples: Option[Seq[Example]])
facets: Option[Seq[Facet]],
examples: Option[Seq[Example]])
extends ApiModel

View File

@ -5,7 +5,7 @@ import org.joda.time.DateTime
case class ExampleUsage (
Text: Option[String])
text: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class Facet (
FacetValues: Option[Seq[FacetValue]],
Name: Option[String])
facetValues: Option[Seq[FacetValue]],
name: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class FacetValue (
Count: Option[Long],
Value: Option[String])
count: Option[Long],
value: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class Frequency (
Count: Option[Long],
Year: Option[Int])
count: Option[Long],
year: Option[Int])
extends ApiModel

View File

@ -5,11 +5,11 @@ import org.joda.time.DateTime
case class FrequencySummary (
UnknownYearCount: Option[Int],
TotalCount: Option[Long],
FrequencyString: Option[String],
Word: Option[String],
Frequency: Option[Seq[Frequency]])
unknownYearCount: Option[Int],
totalCount: Option[Long],
frequencyString: Option[String],
word: Option[String],
frequency: Option[Seq[Frequency]])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class Label (
Text: Option[String],
Type: Option[String])
text: Option[String],
`type`: Option[String])
extends ApiModel

View File

@ -5,10 +5,10 @@ import org.joda.time.DateTime
case class Note (
NoteType: Option[String],
AppliesTo: Option[Seq[String]],
Value: Option[String],
Pos: Option[Int])
noteType: Option[String],
appliesTo: Option[Seq[String]],
value: Option[String],
pos: Option[Int])
extends ApiModel

View File

@ -5,9 +5,9 @@ import org.joda.time.DateTime
case class PartOfSpeech (
Roots: Option[Seq[Root]],
StorageAbbr: Option[Seq[String]],
AllCategories: Option[Seq[Category]])
roots: Option[Seq[Root]],
storageAbbr: Option[Seq[String]],
allCategories: Option[Seq[Category]])
extends ApiModel

View File

@ -5,13 +5,13 @@ import org.joda.time.DateTime
case class Related (
Label1: Option[String],
RelationshipType: Option[String],
Label2: Option[String],
Label3: Option[String],
Words: Option[Seq[String]],
Gram: Option[String],
Label4: Option[String])
label1: Option[String],
relationshipType: Option[String],
label2: Option[String],
label3: Option[String],
words: Option[Seq[String]],
gram: Option[String],
label4: Option[String])
extends ApiModel

View File

@ -5,9 +5,9 @@ import org.joda.time.DateTime
case class Root (
Id: Option[Long],
Name: Option[String],
Categories: Option[Seq[Category]])
id: Option[Long],
name: Option[String],
categories: Option[Seq[Category]])
extends ApiModel

View File

@ -5,17 +5,17 @@ import org.joda.time.DateTime
case class ScoredWord (
Position: Option[Int],
Id: Option[Long],
DocTermCount: Option[Int],
Lemma: Option[String],
WordType: Option[String],
Score: Option[Float],
SentenceId: Option[Long],
Word: Option[String],
Stopword: Option[Boolean],
BaseWordScore: Option[Double],
PartOfSpeech: Option[String])
position: Option[Int],
id: Option[Long],
docTermCount: Option[Int],
lemma: Option[String],
wordType: Option[String],
score: Option[Float],
sentenceId: Option[Long],
word: Option[String],
stopword: Option[Boolean],
baseWordScore: Option[Double],
partOfSpeech: Option[String])
extends ApiModel

View File

@ -5,12 +5,12 @@ import org.joda.time.DateTime
case class Sentence (
HasScoredWords: Option[Boolean],
Id: Option[Long],
ScoredWords: Option[Seq[ScoredWord]],
Display: Option[String],
Rating: Option[Int],
DocumentMetadataId: Option[Long])
hasScoredWords: Option[Boolean],
id: Option[Long],
scoredWords: Option[Seq[ScoredWord]],
display: Option[String],
rating: Option[Int],
documentMetadataId: Option[Long])
extends ApiModel

View File

@ -5,10 +5,10 @@ import org.joda.time.DateTime
case class SimpleDefinition (
Text: Option[String],
Source: Option[String],
Note: Option[String],
PartOfSpeech: Option[String])
text: Option[String],
source: Option[String],
note: Option[String],
partOfSpeech: Option[String])
extends ApiModel

View File

@ -5,10 +5,10 @@ import org.joda.time.DateTime
case class SimpleExample (
Id: Option[Long],
Title: Option[String],
Text: Option[String],
Url: Option[String])
id: Option[Long],
title: Option[String],
text: Option[String],
url: Option[String])
extends ApiModel

View File

@ -5,7 +5,7 @@ import org.joda.time.DateTime
case class StringValue (
Word: Option[String])
word: Option[String])
extends ApiModel

View File

@ -5,9 +5,9 @@ import org.joda.time.DateTime
case class Syllable (
Text: Option[String],
Seq: Option[Int],
Type: Option[String])
text: Option[String],
seq: Option[Int],
`type`: Option[String])
extends ApiModel

View File

@ -5,9 +5,9 @@ import org.joda.time.DateTime
case class TextPron (
Raw: Option[String],
Seq: Option[Int],
RawType: Option[String])
raw: Option[String],
seq: Option[Int],
rawType: Option[String])
extends ApiModel

View File

@ -5,14 +5,14 @@ import org.joda.time.DateTime
case class User (
Id: Option[Long],
Username: Option[String],
Email: Option[String],
Status: Option[Int],
FaceBookId: Option[String],
UserName: Option[String],
DisplayName: Option[String],
Password: Option[String])
id: Option[Long],
username: Option[String],
email: Option[String],
status: Option[Int],
faceBookId: Option[String],
userName: Option[String],
displayName: Option[String],
password: Option[String])
extends ApiModel

View File

@ -5,17 +5,17 @@ import org.joda.time.DateTime
case class WordList (
Id: Option[Long],
Permalink: Option[String],
Name: Option[String],
CreatedAt: Option[DateTime],
UpdatedAt: Option[DateTime],
LastActivityAt: Option[DateTime],
Username: Option[String],
UserId: Option[Long],
Description: Option[String],
NumberWordsInList: Option[Long],
Type: Option[String])
id: Option[Long],
permalink: Option[String],
name: Option[String],
createdAt: Option[DateTime],
updatedAt: Option[DateTime],
lastActivityAt: Option[DateTime],
username: Option[String],
userId: Option[Long],
description: Option[String],
numberWordsInList: Option[Long],
`type`: Option[String])
extends ApiModel

View File

@ -5,13 +5,13 @@ import org.joda.time.DateTime
case class WordListWord (
Id: Option[Long],
Word: Option[String],
Username: Option[String],
UserId: Option[Long],
CreatedAt: Option[DateTime],
NumberCommentsOnWord: Option[Long],
NumberLists: Option[Long])
id: Option[Long],
word: Option[String],
username: Option[String],
userId: Option[Long],
createdAt: Option[DateTime],
numberCommentsOnWord: Option[Long],
numberLists: Option[Long])
extends ApiModel

View File

@ -5,12 +5,12 @@ import org.joda.time.DateTime
case class WordObject (
Id: Option[Long],
Word: Option[String],
OriginalWord: Option[String],
Suggestions: Option[Seq[String]],
CanonicalForm: Option[String],
Vulgar: Option[String])
id: Option[Long],
word: Option[String],
originalWord: Option[String],
suggestions: Option[Seq[String]],
canonicalForm: Option[String],
vulgar: Option[String])
extends ApiModel

View File

@ -5,18 +5,18 @@ import org.joda.time.DateTime
case class WordOfTheDay (
Id: Option[Long],
ParentId: Option[String],
Category: Option[String],
CreatedBy: Option[String],
CreatedAt: Option[DateTime],
ContentProvider: Option[ContentProvider],
HtmlExtra: Option[String],
Word: Option[String],
Definitions: Option[Seq[SimpleDefinition]],
Examples: Option[Seq[SimpleExample]],
Note: Option[String],
PublishDate: Option[DateTime])
id: Option[Long],
parentId: Option[String],
category: Option[String],
createdBy: Option[String],
createdAt: Option[DateTime],
contentProvider: Option[ContentProvider],
htmlExtra: Option[String],
word: Option[String],
definitions: Option[Seq[SimpleDefinition]],
examples: Option[Seq[SimpleExample]],
note: Option[String],
publishDate: Option[DateTime])
extends ApiModel

View File

@ -5,9 +5,9 @@ import org.joda.time.DateTime
case class WordSearchResult (
Count: Option[Long],
Lexicality: Option[Double],
Word: Option[String])
count: Option[Long],
lexicality: Option[Double],
word: Option[String])
extends ApiModel

View File

@ -5,8 +5,8 @@ import org.joda.time.DateTime
case class WordSearchResults (
SearchResults: Option[Seq[WordSearchResult]],
TotalResults: Option[Int])
searchResults: Option[Seq[WordSearchResult]],
totalResults: Option[Int])
extends ApiModel