Open zlatkoverk opened 2 years ago
If route supports optional url parameters, then purgatory should generate first and second url without any query parameters.
E.g. single route handles /post/{id}/comments and /post/{id}/comments/user/{userId} @PurgeOn(Post::class, parameters={"id":"id", "userId":"user.id"})
/post/{id}/comments
/post/{id}/comments/user/{userId}
@PurgeOn(Post::class, parameters={"id":"id", "userId":"user.id"})
Current behaviour is that the first route is generated with a query parameter userId which is not needed
userId
If route supports optional url parameters, then purgatory should generate first and second url without any query parameters.
E.g. single route handles
/post/{id}/comments
and/post/{id}/comments/user/{userId}
@PurgeOn(Post::class, parameters={"id":"id", "userId":"user.id"})
Current behaviour is that the first route is generated with a query parameter
userId
which is not needed