test/api: Check responses for all supported content types
In order to catch possible issues for accepted content types different
from "application/json", add helper test functions to also check Web API
HTML responses (documentation) and YAML responses.
Closes T2529