RESTful Service Theory: Difference between revisions

m
Typo
m (Changed link)
m (Typo)
Line 70: Line 70:
Collection names should, in general, be <u>plural</u> (because they refer to a plurality of instances within them), while instances should be identified by a unique key within their containing collection.
Collection names should, in general, be <u>plural</u> (because they refer to a plurality of instances within them), while instances should be identified by a unique key within their containing collection.


In APIs representing a hierarchically organised system, which most databases, to a greater or lesser extent, are, the pattern:
In APIs representing a hierarchically organised systems, which most databases, to a greater or lesser extent, are, the pattern:


:'''<protocol>://<host>/<api-path>/<version>/<collectionID>/<instanceID>/<collectionID>/<instanceID>/<collectionID>/'''... etc.
:'''<protocol>://<host>/<api-path>/<version>/<collectionID>/<instanceID>/<collectionID>/<instanceID>/<collectionID>/'''... etc.