@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Starwars Translations API
@base https://api.funtranslations.com
@version 2.3
@auth ApiKey X-Funtranslations-Api-Secret in header
@common_fields {text: any # Text to translate}
@endpoints 6
@toc translate(6)

@endpoint GET /translate/yoda
@desc Translate from English to Yoda Speak.
@returns(200) 200  response
@errors {401: 401  response}

@endpoint GET /translate/sith
@desc Translate from English to Sith Speak.
@returns(200) 200  response
@errors {401: 401  response}

@endpoint GET /translate/cheunh
@desc Translate from English to Starwars cheunh.
@returns(200) 200  response
@errors {401: 401  response}

@endpoint GET /translate/gungan
@desc Translate from English to Starwars Gungan Language.
@returns(200) 200  response
@errors {401: 401  response}

@endpoint GET /translate/mandalorian
@desc Translate from English to Starwars Mandalorian Language.
@returns(200) 200  response
@errors {401: 401  response}

@endpoint GET /translate/huttese
@desc Translate from English to Starwars Huttese Language.
@returns(200) 200  response
@errors {401: 401  response}

@end
