one best-practice question. If you are designing RESTful interface how would you differentiate subtypes. E.g. your application has animals (each animal is identified by its animalId) with subtypes of dog and bird where each subtype has its specific subresources. E.g. dogs has tail-length and bird wings-length (whatever it could be). What of these (or do you have in mind any better) approaches would you choose?
1)
/animals/{animalId}/tail-length (400 when animal is bird)
/animals/{animalId}/wings-length (400 when animal is dog)
2)
/dogs/{animalId}/tail-length
/birds/{animalId}/wings-length
3)
/animals?type=dog/{animalId}/tail-length
/animals?type=bird/{animalId}/wings-length