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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -