Fixed NPE for routes with URL patterns with no parameters.
Refactored swaggerVersion value into a constant.