Skip to main content

New answers tagged

1 vote

Rest Endpoint Design

Ideally all fields should be as consistent as possible, in terms of their data format and their purpose. You have two different core types of response purpose, a successful result and an error. Rather ...
javakx's user avatar
  • 11
2 votes

Rest Endpoint Design

The main point I would call out is the change of type of the data element dependent on whether an error occurred. In the case of a valid response you get a list of maps: "data": [{ In the ...
DavidT's user avatar
  • 3,629

Top 50 recent answers are included