profiles: Swagger integration

Fixes to support the "Try it out!" feature.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>