adds swagger default support and simplifies path generation