The issue is very simple, Let me break down what is happening here.
So, when you call http://localhost:5001/oWBI
, this matches with /:id
route syntax.
So in order to fix this issue you would have to change the order of the route definitions, if you do that this will fix your problem.