change /metadata to return contentType application/json