HTTP API: Add Superviser API skeleton
authorMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 10 Oct 2017 10:30:54 +0000 (12:30 +0200)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 5 Jun 2018 10:48:28 +0000 (12:48 +0200)
commitcab1fb00dcacdf5d58a6fc0cda9003939c289ce0
treee5bcb3ceeddfd86414a53128b0aad52eba13b7a2
parent9082c51b1863b2af78c458a6584112a521c10a58
HTTP API: Add Superviser API skeleton

Currently only Requests and handlers of 2 Workers functions were
present, although HTTP API should cover full Workers API.

Tests will use mocked Workers and Superviser interfaces, so
generation line was added to boruta.go.

Change-Id: Id6d82a8c6e61121a2e75d5c90445edf35b2268a5
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
boruta.go
mocks/mock_workers.go
server/api/v1/api.go
server/api/v1/api_test.go
server/api/v1/handlers.go
server/api/v1/handlers_test.go
server/api/v1/testdata/worker-deregister-POST.json [new file with mode: 0644]
server/api/v1/testdata/worker-set-groups-POST.json [new file with mode: 0644]
server/api/v1/testdata/worker-set-state-POST.json [new file with mode: 0644]