3 ms·
API (and modern web servers are API only) should: 1) handle route (read data, transform, prepare other resources, check access rights) 2) generate response wi
by EugeneOZ 10y ago
API (and modern web servers are API only) should:
1) handle route (read data, transform, prepare other resources, check access rights)
2) generate response with reading/writing to db.
First step is not so primitive. Reading request data is often boilerplate-rich code, so syntax which can remove tons of boilerplate is very welcomed.