Small example Ruby web service with Ruby on Rails that uses Oicana for PDF templating.
- Install dependencies:
bundle install - Start the service:
bin/rails server - Visit http://127.0.0.1:3007/api-docs for the Swagger documentation
The templates are loaded on first use instead of during boot, because Oicana cannot compile in a process forked from one that already compiled. That way, every Puma worker loads its own templates.
The OpenAPI document is generated from the request specs with rswag. Run bin/rails rswag:specs:swaggerize after changing them, and bin/ci to run all checks.
The code of this example project is licensed under the MIT license.
But please be aware, that the Oicana dependency is licensed under PolyForm Noncommercial License 1.0.0 and, after 30 days, requires a commercial license for use cases that are not covered by the PolyForm license. Visit the Oicana website for pricing options.