Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transclude mechanics #14

Open
dret opened this issue Jan 14, 2018 · 2 comments
Open

transclude mechanics #14

dret opened this issue Jan 14, 2018 · 2 comments

Comments

@dret
Copy link
Collaborator

dret commented Jan 14, 2018

i may be a little bit confused by the wording and the current section 5. most of the wording in section 3 seems to imply that transclude links are resolved and embedded on the server side (see #13 for my general confusion about the preference name). that would mean that in such a response, there would be no indication that something was a link. it simply would appear as embedded content (whatever that means for a given media type).
section 5 looks a bit as if the "transcluded" resources are actually sent as separate content in a multipart response and the client still has to do the actual link resolution, only that it doesn't have to request the entities? some clarification on the general mechanics of the proposed facility would help to make this more clear.

@inadarei
Copy link
Owner

Transclude spec makes no assumptions on where exactly included content is inserted in the original content. For HTML content it may make sense inlining to happe, but if we are talking about JSON payload in an API's case, such decisions can be application and use-case specific. I don't think we should prescribe behavior.

Likewise, multipart example is given as just an example of how multiple transclusions MAY be handled, using pre-existing approaches, but doesn't require this to be THE solution

@dret
Copy link
Collaborator Author

dret commented Jan 16, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants