Web service design - how should my web service response?
Example a Phone number can have type "Home telephone", "Business telephone", "Customer Service telephone" etc
Should my web service API return in the response with "PhoneTypeCode" or PhoneTypeName (used for display)?
Example of Business telephone type
1) PhoneTypeCode: "business"
2) PhoneType: "Business telephone"
3) Return both?
Depending on your needs either approach is fine.
When deciding consider: