fixed APISpark compatibility

removed unused type on pathvariable and parameter and section on resource