| GET | /languages | Get all available languages |
|---|
import Foundation
import ServiceStack
public class GetLanguages : Codable
{
required public init(){}
}
public class GetLanguagesResponse : List<Language>
{
required public init(){ super.init() }
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
}
}
public class Language : Codable
{
/**
* Booster ID of the language
*/
// @ApiMember(Description="Booster ID of the language", IsRequired=true)
public var languageId:String
/**
* Description of the language
*/
// @ApiMember(Description="Description of the language", IsRequired=true)
public var Description:String
/**
* Language description translation
*/
// @ApiMember(Description="Language description translation", IsRequired=true)
public var translation:String
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /languages HTTP/1.1 Host: dev-api-booster.richemont.com Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length []