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

Standardize JSON response format #20

Open
AHelper opened this issue Aug 5, 2015 · 1 comment
Open

Standardize JSON response format #20

AHelper opened this issue Aug 5, 2015 · 1 comment
Assignees
Milestone

Comments

@AHelper
Copy link
Owner

AHelper commented Aug 5, 2015

Different commands have different response formats, some are just plain text, some don't have status codes, they put data in different places. Standardize on:

{
  "status": INT,
  "msg": STR, # Describe the meaning of the status
  "data": [VAL] # Array of optional values, order preserved from request for compound requests.
}

Requests, however, don't need this kind of standardizing.

@AHelper AHelper self-assigned this Aug 5, 2015
@AHelper AHelper added this to the 1.0 milestone Aug 5, 2015
@AHelper
Copy link
Owner Author

AHelper commented Aug 10, 2015

Well then, how did I not know about JSON-RPC? This is a good place to start, actually...

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