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

Pretty print API responses #5

Open
yazinsai opened this issue Mar 14, 2018 · 0 comments
Open

Pretty print API responses #5

yazinsai opened this issue Mar 14, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@yazinsai
Copy link
Member

Instead of returning this:

{"error":{"type":"processing","code":"bad_request","message":"Bad Request","extras":{"time":"2018-03-14T08:18:23Z","request_id":"d60a4858-1757-4a78-ab18-5d81be7d39b5"}}}

It should return a more readable output like the below:

{
  "error": {
    "type": "processing",
    "code": "bad_request",
    "message": "Bad Request",
    "extras": {
      "time": "2018-03-14T08:18:23Z",
      "request_id": "d60a4858-1757-4a78-ab18-5d81be7d39b5"
    }
  }
}
@yazinsai yazinsai added the enhancement New feature or request label Mar 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant