Skip to content

Metadata service also known as config service. It hold the metadata/config required across different services.

Notifications You must be signed in to change notification settings

Udayasankar6/metadata-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metadata Service

Default Spring Boot actuator endpoints

  1. /actuator/info
  2. /actuator/health

Metadata Service endpoints (to POST and GET metadata objects)

  1. POST to create an entry in the database
curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"group":"sunitparekh","name":"city","value":"Pune"}' \
  http://localhost:8080/metadata
  1. GET all entres posted in step 1

curl http://localhost:8080/metadata

files to chanage for connecting to actual mongodb instance

  1. src/main/java/org/boot/services/metadata/InMemoryMongoDB.java comment @Configuration on line # 8

  2. src/main/resources/application.properties comment out line 24 uncomment line 25 (remember the name of the mongodb server or change it as you like)

About

Metadata service also known as config service. It hold the metadata/config required across different services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 99.0%
  • Other 1.0%