Skip to content

Instantly share code, notes, and snippets.

@philjones88
Last active August 29, 2015 14:08
Show Gist options
  • Save philjones88/7b6d917e159a9fa75609 to your computer and use it in GitHub Desktop.
Save philjones88/7b6d917e159a9fa75609 to your computer and use it in GitHub Desktop.
Hypermedia Question
Assuming your web app supports deep linking, like an AngularJS one would.
Assume basic crud of Foo. So list, create, edit and delete.
If a user bookmarks in your app an edit page or simply refreshes the page, thanks to deep linking you now skip over the list part of navigation.
So the user's browser hits:
http://example.org/#/foos/1
This then tells AngularJS I want foo 1.
It now has to discover how to get foo 1 from the REST API.
How does the application do this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment