16 Commits

Author SHA1 Message Date
wing328
4aa9f1b5fa add license header to scala files 2016-06-18 15:21:55 +08:00
wing328
c6f03806df Replaced {{mediaType}} with {{{mediaType}} to keep the original media 2016-05-20 17:48:47 +08:00
wing328
79decc53a1 fix requireParameterCount in scala 2016-04-16 00:09:15 +08:00
wing328
c317f99466 fix required parameter in scala api client 2016-04-15 23:08:16 +08:00
wing328
87e542c69c replace requiredParam with reuqired 2016-04-15 22:54:46 +08:00
hcwilhelm
be0efa3b25 replayced requiredParamCount with allParams 2016-04-12 14:39:28 +02:00
wing328
05a8c47a36 update docstring to include default value 2016-03-17 17:43:21 +08:00
xhh
801efaa3d4 Replace "nickname" with "operationId" in some API templates 2015-11-25 18:13:39 +08:00
wing328
b636d2a2c9 rollback scala template 2015-06-09 12:56:26 +08:00
Ron
1c2d0656b0 Code reformatting 2015-06-07 11:56:08 -04:00
Tony Tam
85c37fbe27 fix for #781 2015-05-23 09:04:40 -07:00
xhh
4a55223a8f Add form parameters support to Scala codegen 2015-04-24 23:57:17 +08:00
William Cheng
5465708a42 add method documentation to android and scala 2015-04-19 23:51:46 +08:00
Luca Milanesio
14795df85d Scala api.mustache: make new constructor backward compatible
When default values have been provided with the api.mustache
constructor, backward compatibility was broken because of the public
instance variables becoming immutable vals whilst they were vars before.

We can now use the constructor arguments as default values for the internal
vars and establish backward compatibility with existing code.
2015-02-11 11:00:41 +00:00
Luca Milanesio
fd560f4dc1 Scala api.mustache: allow easy basePath and ApiInvoker override
Gets rid of the smelly vars inside Scala api.mustache allowing the
override of default basePath and ApiInvoker on the constructor.

Previously the code for overriding was:

  val myApi = new MyApi()
  myApi.basePath = "http://myapi.endpoint.com"
  myApi.apiInvoker = new ApiInvoker(authScheme = "SPNEGO")

after the change everything can be simply declared in the constructor:

  val myApi = new MyApi("http://myapi.endpoint.com",
                         new ApiInvoker(authScheme = "SPNEGO"))
2015-02-10 14:07:13 +00:00
Tony Tam
6bb2e4ccb4 moved to modules per #411 2015-02-05 07:17:38 -08:00