openBackhaul / ApplicationPattern

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

eventDispatcher function shall be updated for returning response-body on receiving 200 response-code #960

Closed IswaryaaS closed 5 months ago

IswaryaaS commented 6 months ago

In ApplicationPattern package, "onf-core-model-ap/applicationPattern/rest/client/eventDispatcher", the function dispatchEvent shall be updated in such a way that it would return not only the response status (as true or false), but also the response-body incase of 200 response-code

example: response = { "response-code": responseCode, "response-data": responseBody }

PrathibaJee commented 5 months ago

Issue merged to branch v2.1.1_impl as a part of the PR https://github.com/openBackhaul/ApplicationPattern/pull/967. Hence closing this issue.