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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

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

c# - Search and Add Comment with OpenXML for Word -