cytoscape / cyREST

Core App: REST API module for Cytoscape
https://github.com/cytoscape/cyREST/wiki
MIT License
30 stars 13 forks source link

Make Cytoscape Log a RESTful endpoint #5

Open dotasek opened 7 years ago

dotasek commented 7 years ago

{ "data": {}, "errors": [ { "status": 404, "type": "string", "message": "string", "link": "file:/somedirectory/CytoscapeConfiguration/3/framework-cytoscape.log" } ] }

In the current implementation, the link field in an error element simply points to the URI of the framework log file.

A potential improvement is making the link point to a resource to expose the log file, with filters that could correspond to specific errors or error classes:

GET /v1/log?marker=error1234