Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 882 Bytes

File metadata and controls

24 lines (20 loc) · 882 Bytes

API CLIENT REST API

A REST API to send HTTP request, deployed using Docker.

Prerequisites:

  • Download and install docker and docker-compose
  • Download and move to 'api-client-restapi'
    $ git clone https://github.com/kmponis/api-client-restapi.git

Deploy with docker-compose


$ docker-compose up

Test URL and Code Coverage (100%)


$ open http://<docker_ip_address>:9991/swagger-ui.html
$ open api-client/target/jacoco-reports/index.html

(Optional) Build, deploy and upload using Dockerfile-noDC

  • Move to 'api-client', Build and Deploy
    $ cd api-client
    $ docker build -t apiclientimage -f Dockerfile-noDC .
    $ docker run -p 9991:8882 apiclientimage
  • Upload to dockerhub for external use
    $ docker tag apiclientimage kbonis/api-client-image:latest
    $ docker login
    $ docker push kbonis/api-client-image:latest