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

Proposal to add "accepts" and "returns" to SLRESTContract #95

Open
hideya opened this issue Jan 29, 2016 · 0 comments
Open

Proposal to add "accepts" and "returns" to SLRESTContract #95

hideya opened this issue Jan 29, 2016 · 0 comments

Comments

@hideya
Copy link
Contributor

hideya commented Jan 29, 2016

As pointed out in #83 (comment), "the response ("returns" argument) is always passed as a JSON object and it's up to the API caller to extract individual arguments from the response, together with applying any type conversions as necessary."

One approach to hide that conversion process from SDK users is to add "accepts" and "returns" to SLRESTContract and perform the conversion in SLObject automatically. This should simplify the usage.

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