Skip to content

Config Server

Wuyi Chen edited this page May 1, 2019 · 12 revisions

Description

Build an API endpoint which could return configuration parameters based on different services and different environments.

Technique

  • Spring Cloud Configuration server

Provide configuration for following servers/services (See green lines):

  • Licensing Service
  • Organization Service
  • Special Routes Service
  • Authentication Service

There are 2 ways to load your configuration:

  • The configuration service loads from your local file system.
    • Search Location is defined by an absolute path.
    • Search Location is defined by a relative path with classpath.
  • The configuration service loads from a git repository.

Available API Calls

Method URL Description
GET http://localhost:8888/licensingservice/default Read licensing service default config
GET http://localhost:8888/licensingservice/dev Read licensing service dev config
GET http://localhost:8888/licensingservice/prod Read licensing service prod config
POST http://localhost:8888/encrypt Encrypt a value (available only when you set the ENCRYPT_KEY environment variable)
Clone this wiki locally