HTTP API: Add agregation package
authorMaciej Wereski <m.wereski@partner.samsung.com>
Thu, 23 Nov 2017 15:12:27 +0000 (16:12 +0100)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 5 Jun 2018 10:48:28 +0000 (12:48 +0200)
commite6d1a52b93dd1890964807b6cb4e7af57a1a5d10
treec7b4e4307e3eef75f420593c1d1ab1d4c3afd257
parent32f4c975ec02537922c1a7ffb44551dd8abf805e
HTTP API: Add agregation package

Its purpose is to create and aggregate all Boruta HTTP API version. It
also provides handler for panics and redirect ambiguous request to a
default API version.

Change-Id: Ida94aed412951744557db6c30dd658d36ff3e47e
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
http/server/api/api.go [new file with mode: 0644]
http/server/api/api_test.go [new file with mode: 0644]
http/server/api/testdata/panic-other-error.txt [moved from http/server/api/v1/testdata/panic-other-error.txt with 100% similarity]
http/server/api/testdata/panic-server-error.txt [moved from http/server/api/v1/testdata/panic-server-error.txt with 100% similarity]
http/server/api/v1/api.go
http/server/api/v1/api_test.go
http/server/api/v1/handlers_test.go