Take enabled formats as api-middleware parameter
remove unnecessary comment
readying for merge
Take request and response formats on one parameter