cize icon indicating copy to clipboard operation
cize copied to clipboard

Support return type in Console API

Open hailiang-wang opened this issue 8 years ago • 0 comments

By issuing return_type in query, get JSON Returns.

GET /api/projects/purelog/jobs/xxx/records/1/console?return_type=json HTTP/1.1
Content-Type: application/json
Accept: application/json

image

If the job's output is not in JSON string format, just return as Normal. Default return_type is as before.

hailiang-wang avatar Dec 08 '17 09:12 hailiang-wang