openBackhaul / ApplicationPattern

Pattern for REST servers
Apache License 2.0
6 stars 15 forks source link

In /v1/register-yourself Basic Service is giving 500 also updating config.json in case of passing wrong information to the request body #1014

Closed sunil-kumar-meena closed 3 weeks ago

sunil-kumar-meena commented 1 month ago

Description: Basic Service API /v1/register-yourself responding with 500 also it is updating config.json in case of passing wrong information to the request body. e.g

{
  "registry-office-application": "ApplicationForRegistering",
  "registry-office-application-release-number": "43.3.4",
  "registration-operation": "/v2/register-application",
  "registry-office-protocol": "HTTP",
  "registry-office-address": {
    "ip-address": {
      "ipv-4-address": "127.0.0.1"
    }
  },
  "registry-office-port": 3036,
  "http-address": {
    "ip-address": {
      "ipv-4-address": "127.0.0.1"
    }
  },
  "http-port": 3031
}
sunil-kumar-meena commented 3 weeks ago

The issue has been fixed under https://github.com/openBackhaul/ApplicationPattern/issues/1015