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
Post a Comment