You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

CPS-892 - Getting issue details... STATUS

References


CM Handle Registration Request Payload


Proposed Changes

ScenarioEndpointCurrent Response CodeProposed Response CodeComments
Create CM HandlePOST /v1/ch201 (Created)200 ( OK )
Update CM HandlePOST /v1/ch201 (Created) 200 ( OK )
Remove CM HandlePOST /v1/ch201 (Created) 200 ( OK ) 
Create ,Update or Remove CM Handle in the same requestPOST /v1/ch201 (Created) 200 ( OK ) 

As we are using a common payload to handle the Create , Update and Remove operation hence there is a need to streamline the response code in case of successful execution of the request.

For other scenarios , please refer to the page for the exceptions and response codes which will remain as is.

Code Change

NetworkCmProxyInventoryController
	@Override
    public ResponseEntity<Void> updateDmiPluginRegistration(
            final @Valid RestDmiPluginRegistration restDmiPluginRegistration) {
        final DmiPluginRegistration dmiPluginRegistration = convertRestObjectToJavaApiObject(restDmiPluginRegistration);
        networkCmProxyDataService.updateDmiRegistrationAndSyncModule(dmiPluginRegistration);
        return new ResponseEntity<>(HttpStatus.OK);
    }
  • No labels