Skip to content

Instantly share code, notes, and snippets.

@nadeesha
Created September 26, 2014 16:04
Show Gist options
  • Save nadeesha/ac2a392ec96d3ba2d034 to your computer and use it in GitHub Desktop.
Save nadeesha/ac2a392ec96d3ba2d034 to your computer and use it in GitHub Desktop.
ceresi API spec
Check status
GET http://192.168.59.103:8080/api/status
Get all the users' packages
GET http://192.168.59.103:8080/api/v1/npm/packages
Install a package in the app
PUT http://192.168.59.103:8080/api/v1/npm/install/:package
Issue a request to a pakcage
POST http://192.168.59.103:8080/api/v1/:package/:action
If the action is async, it'll return 202 with an id.
Polling this endpoint with that id would resturn the status PENDING or DONE
http://192.168.59.103:8080/api/v1/tasks/:id
@pasindud
Copy link

Provisioner Agent API Spec

POST - host:7070/provision { username : "pasinndu" , | force : true }

Response

{
"status" : "done" | "already exsits" | "forced created",
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment