cytoscape / cyREST

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

Visual Properties outputs are inconsistent #39

Open dotasek opened 6 years ago

dotasek commented 6 years ago

GET /v1/styles/visualproperties/{visualProperty} returns:

{
  "visualProperty": "EDGE_LABEL_WIDTH",
  "name": "Edge Label Width",
  "targetDataType": "CyEdge",
  "default": "200.0"
}

Whereas, GET /v1/styles/{name}/defaults/{vp} and GET /v1/styles/{name}/defaults both use the format:

{
  "visualProperty": "EDGE_LABEL_WIDTH",
  "value": 200
}