Practical Dev. Guide
A hands-on Guide for build web apps
by
Șerban Petrescu
Exposing REST apis
"Classic" Spring layers
Source:
https://www.slideshare.net/SofiiaVynnytska/hypermediadriven-web-services-with-spring-data-rest
Database Transactions
Source:
https://help.sap.com/doc/saphelp_erp2005/6.0/en-US/42/006bd8c6084230e10000000a114cbd/content.htm?no_cache=true
Reminder Proxy Pattern
Source:
https://www.sihui.io/design-pattern-proxy/
Spring Transactional
Source:
http://sagan-production.cfapps.io/blog/2012/05/23/transactions-caching-and-aop-understanding-proxy-usage-in-spring
REST
Use plural resource type names (e.g. students).
Nest child resource paths if appropriate (e.g. /groups/1/students).
Use appropriate response status codes (2xx, 4xx, 5xx).
Use JSON payloads and have a consistent response structure:
Same structure for all types of errors.
Same structure for all resources of the same type.
REST - Best practices
Thanks
Made with Slides.com