← Back to team overview

dhis2-devs-core team mailing list archive

Re: ApiVersioning redux

 

Hi Halvdan

This should be fixed now, the issue was that even though @RequestMapping
will default to GET (if not method is set) the annotation doesn't default
to GET. I'm now mapping method = {} to method = GET internally, which means
that your issues should be gone.

I think there will be similar issues if you want and endpoint for
application/json to have a different version than application/xml, but I
think that is taking this versioning a bit far.

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jun 9, 2016 at 12:51 PM, Morten Olav Hansen <morten@xxxxxxxxx>
wrote:

>
> On Thu, Jun 9, 2016 at 12:45 PM, Morten Olav Hansen <morten@xxxxxxxxx>
> wrote:
>
>> Not 100% sure what you mean here, we already have POST/PUT with different
>> methods on / vs /24 etc (for same mapping)... but I will try it out, maybe
>> there are some bugs there
>>
>
> Hm, I made some tests around this now.. and I see there are some issues,
> will try to fix today or tomorrow (working on it now)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>

Follow ups

References