Skip to content

vinaygwd/yti-codelist-public-api-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YTI CodeList - Public API Service microservice

This application is part of the Joint metadata and information management programme.

Description

This is the implementation of the Public API Service microservice for the YTI CodeList with:

Example queries:

Do a HTTP GET to public resource: http://localhost:9601/api/v1/hello

Interface Documentation

When the microservice is running, you can get the Swagger REST API documentation from:

Prerequisities

Building

  • Java 8+
  • Maven 3.3+
  • Docker

Running

Starting service on local development environment

Running inside IDE

Add the following Run configurations options:

  • Program arguments: --spring.profiles.active=default --spring.config.location=../yti-codelist-config/application.yml,../yti-codelist-config/yti-codelist-public-api-service.yml
  • Workdir: $MODULE_DIR$

Add folder for yti project, application writes modified files there:

$ mkdir /data/yti

Building the Docker Image

$ mvn clean package docker:build

Running the Docker Image

$ docker run --rm -p 9601:9601 -p 19601:19601 -v /path/to/yti-codelist-config:/config --name=yti-codelist-public-api-service yti-codelist-public-api-service -a --spring.config.location=/config/application.yml,/config/yti-codelist-public-api-service.yml

.. or in yti-codelist-compose run

$ docker-compose up yti-codelist-public-api-service

About

YTI CodeList project Public API Service microservice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.7%
  • Other 0.3%