### ----------------------------------------------------
### -- Bailador
### -- Licenses: MIT
### -- Authors: Tadeusz “tadzik” Sośnierz, Anthony Parsons, Carl Masak, Gabor Szabo, GlitchMr, Moritz Lenz, Panu Ervamaa, Paul Cochrane, Solomon Foster, Sterling Hanenkamp, Tobias Leich, ugexe, vendethiel, Martin Barth (ufobat), Emeric Fischer, Julien Simonet (jsimonet)
### -- File: examples/api/README.md
### ----------------------------------------------------
Simple API example.

Since we want to render a JSON response, we can define the default content type of our application to `application/json`.
```perl6
app.config.default-content-type = 'application/json';
```
Finally, we render our data thanks to the `to-json` method, provided by the JSON::Fast module. Bailador automatically calls this method for us.


