Skip to content

Config Server

Wuyi Chen edited this page Jun 12, 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:

  • 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

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