Skip to content

Multiple versions on the same controller #821

Closed
@Mhirji

Description

@Mhirji

Hi,

I'm not sure if you are seeing the same thing (and I don't suspect it is normal behavior) but when using the ODataOpenApiExample project, calling version v0.9 ~/api/Orders/1 returns a 404 and v1 ~/api/Orders/1 returns the order as expected. v2 and v3 both work as expected, but they each have their own controller.

On my own project, when using multiple versions on the same controller, one version will throw a 404 where the other returns the data - the same behavior. I should note in my case neither version is deprecated - thought that might be a clue but nope. I thought it may be due to the order, but changing it does not seem to make a difference either on the ODataOpenApiExample project or mine - which to be honest I found strange :) - it appears to always take the lowest whole number. So in my case I had v3 and v4, v3 would return data and v4 would return a 404.

Perhaps I am missing something or misunderstanding something somewhere?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions