mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* 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
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.