gdulus
gdulus

Reputation: 85

Grails default rest controller

Is there any way to specify default version of REST controller? Lets say that we have mapping like

"/test"(version: '1.0.0', resources: "test", namespace: 'v1')
"/test"(version: '2.0.0', resources: "test", namespace: 'v2')

and versioning is resolved with usage of http header.

If no header is specified 2.0.0 is going to be used. Is there any way to enforce version 1.0.0 in such case?

Upvotes: 1

Views: 122

Answers (1)

Graeme Rocher
Graeme Rocher

Reputation: 7985

Grails implements semantic versioning, so whichever one is the highest version number comes first

Upvotes: 1

Related Questions