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

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -