kevinswiber / siren

Structured Interface for Representing Entities, super-rad hypermedia
MIT License
1.29k stars 71 forks source link

Use siren as home document with links only #59

Closed AlexZeitler closed 9 years ago

AlexZeitler commented 9 years ago

Is it designated to have a siren response having links only to be used a home document (similar to / as a replacement for JSON Home)?

kevinswiber commented 9 years ago

Sure, that's no problem. Often, I find myself also adding search actions to home documents (find-user, lookup-order, etc.). Using a class of "root" or "home" is something I do, as well, as most of my Siren client code reacts to the current representation by keying off classes (e.g., mapping a view to a class).

Sent from my iPhone

On Sep 15, 2015, at 6:00 AM, Alexander Zeitler notifications@github.com wrote:

Is it designated to have a siren response having links only to be used a home document (similar to / as a replacement for JSON Home)?

— Reply to this email directly or view it on GitHub.

AlexZeitler commented 9 years ago

Thanks