Swagger document driven route builder.