json - What is the best way to test a REST API for backwards compatibility? -


my goal come set of automated tests consume services of api , check if compatibility not broken (by mistake or on purpose).

my initial idea json results , deserialize against dtos used in serialization. reason avoid manual generation of schema can big , difficult maintain. problem libraries gson robust , tend not thrown exceptions when problem happens in deserialization (unless write custom deserializer, again take time , maintainance efforts).

am going in right direction here? or there way ensure api compatibility?

(ideally, test not json, xml responses same api.)


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -