HATEOAS - mosinn/DOCS-n-Snippets-n-Steps GitHub Wiki

URL breakdown:

https://stackoverflow.com/questions/32656791/official-name-for-url-scheme-plus-authority https://stackoverflow.com/questions/2239405/hateoas-absolute-or-relative-urls

http://foo:[email protected]:8042/over/there?name=ferret#nose
\_____________________________/
              |
          this part

RFC 3986 defines the URL syntax parts as follows:

http://foo:[email protected]:8042/over/there?name=ferret#nose
\__/   \______________________/\_________/ \_________/ \__/
  |               |                |            |        |

scheme authority path query fragment RFC 6454 defines the origin (as in "same origin") of an the URL as the triple (scheme, host, port):

http://foo:[email protected]:8042/over/there?name=ferret#nose
\__/           \______________/
  \________________/
          |
       origin