Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7710097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:01:53+00:00 2026-06-01T01:01:53+00:00

I am looking for good tools to support support changing the version of the

  • 0

I am looking for good tools to support support changing the version of the model used in REST services. My dream tools would do something like:

  • My pojo + version 1.0 config/transformer => Service available with 1.0 of my model
  • My pojo + version 1.1 config/transformer => Service available with 1.1 of my model

In my particular case I do not need to do the reverse transformation as my REST service will only provide lookup of data and never store stuff, but I don’t mind using a tool doing both:-)

A solution I am considering is adding custom annotations in my pojo (version + name) and make a code generator that will generate JSON/XML based on my pojo based on the version number. Though here I feel like I am re-inventing the wheel.

Edit:
Here is an example of a change that can be done from version 1 to version 1.1:

Version 1:
Person
firstname
lastname

Version 1.1
Person
firstname
lastname
birthdate

If you access the API with version 1.0 you do not get the birthdate attribute – it is only available in version 1.1. I want tool support for making these services available, where I can configure that granted that my pojo (which is currently like the 1.1 version), I want to make available a 1.0 version that does not show these values.

Other legal changes to the model could be to delete an attribute or to rename an attribute (or even rename an entity).

Edit 2:
Digital Joel mentioned in a comment that for a discussion on versioning the API you should go read https://stackoverflow.com/posts/9789756/.

The easy way out of versioning is ofcourse to not make backward breaking API changes, but business change so this is not always possible. My interest is on how to make these changes simpler to handle, therefore my question.

Edit 3:
I’ve looked for tools that might help the process, but still nothing that connects this in a good way with rest. Here are the links that I have found so far:

  • http://wiki.pmease.com/display/xmt/What%27s+XMT (Looks like a library for helping with serialization pojos to xml with versioning)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:01:55+00:00Added an answer on June 1, 2026 at 1:01 am

    As mentioned in one answer, there may be no tools available for which does automatic versioning of APIs.

    We can address this challenge with two step approach :

    1) Versioning info of API
    There are many debates on best practice.
    two most popular are :

    (i) URI redesign - putting version info in URI like
    http://something.com/v1.0/resource1/ or
    http://something.com/resource1?ver=1.0
    
    (ii) Using HTTP Header - putting version info in Accept/Content-Type
    header keeping URI intact like 
    #
    GET /something/ HTTP/1.1 
    Accept: application/resource1-v1.0+json
    

    2) Multiple versions of same pojo using json/xml library

    Once version info is with us we have to generate resource accordingly.
    There are many json and xml library with which we can maintain multiple versions of same pojo and serialize only required attributes based on version.
    Google gson java library works great in this. Check
    https://sites.google.com/site/gson/gson-user-guide#TOC-Versioning-Support

    public class Person{
    
    @Since(1.0)
    private String firstname;
    
    @Since(1.0)
    private String lastname;
    
    @Since(1.1)
    private String birthdate;
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for some good testing tools (emulators) for Android and iOS to test
Does anyone know of any good tools (I'm looking for IDEs) to write assembly
I'm looking for a good tool to profile a java webapp. I'd like to
I'm looking for a diagramming software that would produce good looking output. It doesn't
I am new to the code generation tools and I would like to know
I'm looking for some good tools/scripts that allow me to generate a few statistics
I am looking for a Html rendering engine that has: Support in a good
I'm currently looking for a good (free) tool to do some PL/SQL development on
I've been looking for a good PHP ORM tool to use, and I recently
I am looking for a good GUI testing framework/automation testing tool for windows forms

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.