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

REST API for controlling CoCo #3

Open
eruffaldi opened this issue Feb 25, 2017 · 1 comment
Open

REST API for controlling CoCo #3

eruffaldi opened this issue Feb 25, 2017 · 1 comment

Comments

@eruffaldi
Copy link
Member

This would allow a Python/any command line editing of the system:

  • new instance
  • new activity
  • new connection
  • execute operations
  • get/set attrib
  1. define API
  2. implement in web_server
  3. make Python command line tool
@eruffaldi
Copy link
Member Author

eruffaldi commented Mar 14, 2017

Implemented the following:

  • /task gives list of tasks
  • /task/NAME/call gives list of ops
  • /task/NAME/call/OP calls OP as void(void)
  • /task/NAME/call/OP/ARG1 calls OP(ARG1) as void(std::string)
  • /task/NAME/get
  • /task/NAME/get/ATTR
  • /task/NAME/set/ATTR/VALUE
  • /task/NAME/peers
  • /task/NAME/SUBTASK ...

Bug: ARG1 cannot contain /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant