Initial Commit to Add RestAPI Server to IEC 25/1325/13
authortrevor tao <trevor.tao@arm.com>
Tue, 6 Aug 2019 01:19:23 +0000 (09:19 +0800)
committertrevor tao <trevor.tao@arm.com>
Thu, 15 Aug 2019 14:05:52 +0000 (22:05 +0800)
commit754bbb90fbbc06ef896673b7346c3086d481dca6
tree8006463f360bc1824caf37106a8706aaf729bb81
parent6ebd8c9c9a1e8cc534b6428c12d0cf6f4bfd9e04
Initial Commit to Add RestAPI Server to IEC

Initial commit to add a Rest API service(http server) to IEC,
which now just support simple Restful request as:
http://IP:port/v1/iec/status
and return a simple JSON reply.
It would be enhanced with more features in the future.

This server listens at TCP port 9131. It can be deployed as a Kubernetes
service, and accessed by http://svcIP/v1/iec/xxx, or by
http://nodeIP:31131/v1/iec/xxx.

Now the commit includes:
1. The API server implementation itself
2. The docker images related files
3. The Kubernetes deployment scripts
4. README.md
5. The Makefile to manage most things.

Change-Id: I0891855a5182fc193fd26e7232903aac7e9b4d12
Signed-off-by: trevor tao <trevor.tao@arm.com>
32 files changed:
src/foundation/api/Makefile [new file with mode: 0644]
src/foundation/api/README.md [new file with mode: 0644]
src/foundation/api/apiserver/README.md [new file with mode: 0644]
src/foundation/api/apiserver/app/controllers/app.go [new file with mode: 0644]
src/foundation/api/apiserver/app/init.go [new file with mode: 0644]
src/foundation/api/apiserver/app/routes/routes.go [new file with mode: 0644]
src/foundation/api/apiserver/app/tmp/main.go [new file with mode: 0644]
src/foundation/api/apiserver/app/tmp/run/run.go [new file with mode: 0644]
src/foundation/api/apiserver/app/views/App/Index.html [new file with mode: 0644]
src/foundation/api/apiserver/app/views/debug.html [new file with mode: 0644]
src/foundation/api/apiserver/app/views/errors/404.html [new file with mode: 0644]
src/foundation/api/apiserver/app/views/errors/500.html [new file with mode: 0644]
src/foundation/api/apiserver/app/views/flash.html [new file with mode: 0644]
src/foundation/api/apiserver/app/views/footer.html [new file with mode: 0644]
src/foundation/api/apiserver/app/views/header.html [new file with mode: 0644]
src/foundation/api/apiserver/conf/app.conf [new file with mode: 0644]
src/foundation/api/apiserver/conf/routes [new file with mode: 0644]
src/foundation/api/apiserver/messages/sample.en [new file with mode: 0644]
src/foundation/api/apiserver/public/css/bootstrap-3.3.6.min.css [new file with mode: 0644]
src/foundation/api/apiserver/public/fonts/glyphicons-halflings-regular.ttf [new file with mode: 0644]
src/foundation/api/apiserver/public/fonts/glyphicons-halflings-regular.woff [new file with mode: 0644]
src/foundation/api/apiserver/public/fonts/glyphicons-halflings-regular.woff2 [new file with mode: 0644]
src/foundation/api/apiserver/public/img/favicon.png [new file with mode: 0644]
src/foundation/api/apiserver/public/js/bootstrap-3.3.6.min.js [new file with mode: 0644]
src/foundation/api/apiserver/public/js/jquery-2.2.4.min.js [new file with mode: 0644]
src/foundation/api/apiserver/tests/apptest.go [new file with mode: 0644]
src/foundation/api/docker/Dockerfile [new file with mode: 0644]
src/foundation/api/docker/Dockerfile.base [new file with mode: 0644]
src/foundation/api/docker/Dockerfile.base.golang [new file with mode: 0644]
src/foundation/api/docker/Dockerfile.golang [new file with mode: 0644]
src/foundation/api/k8s/check.sh [new file with mode: 0755]
src/foundation/api/k8s/iecapi.yaml [new file with mode: 0644]