[swagger] initialize consumes and produces, fix relative path