考慮到這些REST資源:在描述HTTP服務器的REST詞彙表中是否有術語?
http://foo:123/bar/baz
http://foo:123/bar/boz
http://foo:123/bar/buz
http://nirwana:99/abc
http://nirwana:99/def
資源組1至3和4以及5共享相同的網絡端點(主機和端口)。是否有一個特定於REST的術語表示這一點?或者這只是一種特殊類型的「容器」?
考慮到這些REST資源:在描述HTTP服務器的REST詞彙表中是否有術語?
http://foo:123/bar/baz
http://foo:123/bar/boz
http://foo:123/bar/buz
http://nirwana:99/abc
http://nirwana:99/def
資源組1至3和4以及5共享相同的網絡端點(主機和端口)。是否有一個特定於REST的術語表示這一點?或者這只是一種特殊類型的「容器」?
從Uniform Resource Identifier standard (RFC3986)第3節...
The generic URI syntax consists of a hierarchical sequence of
components referred to as the scheme, authority, path, query, and
fragment.
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
hier-part = "//" authority path-abempty
/path-absolute
/path-rootless
/path-empty
[...]
The following are two example URIs and their component parts:
foo://example.com:8042/over/there?name=ferret#nose
\_/ \______________/\_________/ \_________/ \__/
| | | | |
scheme authority path query fragment
| _____________________|__
/\/ \
urn:example:animal:ferret:nose
...所以他們使用的術語 「權威」。
快速查看Roy Fielding's dissertation,最初定義了REST的概念似乎表明他使用相同的術語,這並不令人驚訝,因爲他也是RFC3986的作者之一。 ;-)
REST是獨立於HTTP的架構風格。從另一方面來說,REST是可部分應用於HTTP的架構風格。注意不同之處:HTTP是協議,REST是架構風格。所以你在羅伊的論文裏找不到答案,但是你可以採用URI RFC引入的術語,我會推薦這個。