Sign inSign up

pablobastidasv/hello-svc

By pablobastidasv

•Updated almost 5 years ago

This service is used for testing http connection between microservices and monitoring them.

Image
0

321

pablobastidasv/hello-svc repository overview

⁠Hello service

This service can be used for testing, it has one endpoint which return a RAW string but this RAW string value can be configured on different ways via Spring properties.

⁠Local greet

This is the default behaviour when anything is configured, this configuration return a value configured in the property greeter.local.greet.

⁠Remote greet - Raw mapper

When greeter.system is set to remote, this configuration tells the service to call an external URL defined on property greeter.url via GET method and return the received value.

⁠Remote greet - Json Mapper

When greeter.system is set to remote and greeter.mapper.type is set to json, this configuration tells the service to call an external URL via GET method, the response has to be in JSON format, then the service extract the value given in the property greeter.mapper.field and return it.

⁠Properties

propertydescriptiondefault
greeter.local.greetValue returned by the serviceHello
greeter.systemValue returned by the service (possible values: remote, local)local
greeter.urlURL of the remote servicehttps://api.namefake.com/
greeter.mapper.typeSpecify what wrapper to use when remote call is perform (possible values raw, json)raw
greeter.mapper.fieldField to be extracted form JSON payloadname

Tag summary

Content type

Image

Digest

Size

136.9 MB

Last updated

almost 5 years ago

docker pull pablobastidasv/hello-svc