changed basepath of schema view to basepath of API endpoint