cytoscape / RCy3

New version of RCy3, redesigned and collaboratively maintained by Cytoscape developer community
MIT License
48 stars 20 forks source link

annotations: Optional params for 'add text' #125

Closed AlexanderPico closed 3 years ago

AlexanderPico commented 3 years ago

Something changed with ‘add text’. Now, it only works when all parameters are supplied. If I leave out any of the “optional” params, the method returns (code 200), but an annotation is not added and the return is empty, e.g. Swagger test JSON:

body:
{
  "text": "test1",
  "view": "current",
  "x": "1686",
  "y": "1142",
  "name": "Text 1"
}

return:
{
  "data": {},
  "errors": []
}