An open API service indexing awesome lists of open source software.

https://github.com/kmponis/api-client-restapi

A REST API to send HTTP request, deployed using Docker.
https://github.com/kmponis/api-client-restapi

docker docker-compose integration-tests jersey okhttp3 spring-boot swagger-ui

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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://: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`