api: fix regression

Apparently, we still need the @JsonTypeInfo.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>