Practical Dev. Guide

A hands-on Guide for build web apps

Exposing REST apis

"Classic" Spring layers

Database Transactions

Reminder Proxy Pattern

Spring Transactional

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