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

Provide meaningful response message for void methods #25

Open
jpechane opened this issue Nov 5, 2015 · 0 comments
Open

Provide meaningful response message for void methods #25

jpechane opened this issue Nov 5, 2015 · 0 comments

Comments

@jpechane
Copy link

jpechane commented Nov 5, 2015

Now the invocation returns

{
  "result" : "null"
}

There are three ways how to resolve the issue

  • return nothing
  • make result optional and return empty JSON object
  • return more complex return message like
{
  "status" : "ok",
  "result" : "....",
}

or

{
  "status" : "ok",
}
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

1 participant