Tag Info

Hot answers tagged

2

While you do not anticipate changing the nature of your objects now very much - needs change over time. I would highly suggest you consider using protobuf or Apache Thrift or a similar design instead of relying on default Java serialization. Their advantages include strong support for avoiding impact during minor version changes, significantly better ...


2

The biggest problem is the huge set of assumptions that you so easily skip. Just take your example: "$600 is paid by Client A for inspection" USD or other dollar? Paid when? To whom? What counts as an inspection? Is this a mandatory payment, or only incurred if A opts to do the inspection? Are multiple inspections allowed, If so, is this per inspection? ...


1

You really should do only one of two things Either Return a 200 (OK) status code, and an empty array in the body. Or Return a 204 (NO CONTENT) status code and NO response body. To me, option 2 seems more technically correct and keeping in line with REST and HTTP principles. However, option 1 seems more efficient for the client - because the client does ...



Only top voted, non community-wiki answers of a minimum length are eligible