New answers tagged json
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 ...
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 ...
Top 50 recent answers are included
Related Tags
json × 357rest × 70
api × 47
java × 45
api-design × 40
javascript × 36
c# × 24
xml × 24
database × 23
design × 19
data-structures × 17
web-services × 17
php × 14
python × 13
web-api × 13
design-patterns × 11
serialization × 11
web-development × 10
nosql × 10
ajax × 10
sql × 9
data × 9
architecture × 8
database-design × 8
web-applications × 8