Files
fn-serverless/clients
Denis Makogon 60d2ca234f Ship call logs to the user as text/plain instead of JSON (#615)
* Ship call logs to the user as text/plain instead of JSON

* Fixing swagger doc

* c.String instead of c.JSON

* Make Logs API backward compatible

* Loop over accepted MIME types

* Bump swagger API version

* Fix client build script

 previous version was producing the following "couldn't find a swagger spec"

* Logs API regression test

* Write response body without buffering

* Switch JSON and text/plain cases

* Handle Accepted content types properly

* More solid response content type handling

* Write HTTP 406 with corresponding error body

* Remove unused import

* Use handleErrorResponse
2018-01-02 16:01:22 -06:00
..
2016-10-14 11:40:20 -07:00
2017-09-14 10:57:22 -07:00
2017-09-14 10:57:22 -07:00
2017-09-14 10:57:22 -07:00
2016-11-15 16:40:33 -08:00

build.rb will generate all clients for all Swagger supported languages.

Building and Deploying Clients

First Time

If this is your first time building the clients, you'll need to do the following:

bundle install

Every Time

Everytime the API spec is updated, be sure to bump the version number in swagger.yml, then run:

ruby build.rb

Boom. That's it.

Troubleshooting

Sometimes this will fail due to github caching or something and versions will be off. Just bump version and retry.