Skip to content
jaehue edited this page Nov 5, 2014 · 3 revisions

Welcome to the fleet-ui wiki!

API

API test

$ curl http://localhost:3000/api/v1/units

REST API list

  • [GET] /api/v1/machines
    list all machines
  • [GET] /api/v1/units
    list all service units
  • [POST] /api/v1/units
    create service unit(mandatory parameters: name, service)
  • [POST] /api/v1/units/upload
    upload service unit file & start the unit(mandatory parameters: file object)
  • [GET] /api/v1/units/{unit-name}
    get the service unit information
  • [DELETE] /api/v1/units/{unit-name}
    destroy the service unit
  • [POST] /api/v1/units/{unit-name}/start
    start the service unit
  • [POST] /api/v1/units/{unit-name}/stop
    stop the service unit
  • [POST] /api/v1/units/{unit-name}/load
    load the service unit

Web socket API list

  • /ws/journal/{unit-name}
    receive log message of the service unit in real-time
Clone this wiki locally