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

Replace ExternalService ServiceTag elements with Link/@rel="external-service" #1279

Open
mmarum-sugarcrm opened this issue Jun 5, 2013 · 0 comments

Comments

@mmarum-sugarcrm
Copy link
Member

Original author: [email protected] (April 07, 2012 20:04:49)

SPECIFICATION BUGS ONLY - Description
=====================================
A new "external-service" rel value can be defined to replace the existing ExternalService mechanism, eliminate extraneous elements from the gadget spec vocabulary and simplify the overall format.. for instance..

instead of...

<Module>
...
<ExternalServices>
<ServiceTag alias="opensocial:my.external.service">foo</ServiceTag>
</ExternalServices>
<Content type="html">
<script>
gadgets.io.makeRequest("",function(res){...},{"alias":"foo"};
</script>
</Content>
</Module>

it would be..

<Module>
<ModulePrefs>
...
<Link rel="external-service" label="foo" href="opensocial:my.external.service" />
...
</ModulePrefs>
<Content type="html">
<script>
osapi.links["foo"].get().execute(function(res) {...});
</script>
</Content>
</Module>

By combining this change with the Links API, we can completely streamline how external linked resources are accessed and make it absolutely seamless and consistent across the board.

Document affected:
==================
1.) Please attach a patch for the document if appropriate.
2.) Post a thread at
http://groups.google.com/group/opensocial-and-gadgets-spec/topics
linking to this issue report.
3.) Post a comment on this issue, linking back to the thread.

Original issue: http://code.google.com/p/opensocial-resources/issues/detail?id=1295

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

No branches or pull requests

1 participant