Organizing Routes Around One Resource Identity

A resource can have list, detail, and edit routes. Keeping one identity scheme across them simplifies discovery and permission reasoning.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace one article
  2. Check route responsibilities

Trace one article

The public list points to a stable detail ID. An edit route refers to the same record while requiring different authorization and giving a draft result. See public reads and state changes.

Check route responsibilities

Test one normal read and one normal edit against their documented effects. Web route matching explains where each handler is selected.[1]

References

  1. David L. Parnas, On the Criteria to Be Used in Decomposing Systems into Modules, CMU-CS-71-101 ↩