Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.29 KB

README.md

File metadata and controls

25 lines (21 loc) · 1.29 KB

API URL:

  • GET - [http://localhost:8081/api/job?id={id}&type={SERVER_SYNC,REPO_SYNC}&status={RUNNING,NONE,NORMAL,PAUSED,COMPLETE,ERROR,BLOCKED}]

  • GET - [http://localhost:8081/api/job/status?id=1]

  • POST - [http://localhost:8081/api/job/cancel?id=1&type={SERVER_SYNC,REPO_SYNC}]

  • POST - [http://localhost:8081/api/job/start?id=1&type={SERVER_SYNC,REPO_SYNC}]

  • POST - [http://localhost:8081/api/job/disable?id=1&type={SERVER_SYNC,REPO_SYNC}]

  • POST - [http://localhost:8081/api/job/enable?id=1&type={SERVER_SYNC,REPO_SYNC}]

  • GET - [http://localhost:8081/api/work?id={id}&type={summary}]

  • POST - [http://localhost:8081/api/work]

  • PUT - [http://localhost:8081/api/work]

  • DELETE - [http://localhost:8081/api/work?id={id}]

Executable WAR

  • build: gradle liveWar (server/build/distributions/server-livewar-{version}.war)
  • start: java -Djetty.port={PORT} -Djetty.host={IP} -Ddata.path={directory to store data + db} -jar server-livewar-{version}.war