Skip to content

Commit

Permalink
SSU device regration API is falinging
Browse files Browse the repository at this point in the history
  • Loading branch information
nazeer1100126 committed Dec 1, 2017
1 parent c689c14 commit a42f9d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import com.google.gson.Gson;
import com.google.gson.JsonObject;

@Path("/device/registration")
@Path("/self/device/registration")
@Component
@Scope("singleton")
public class DeviceRegistrationApiResource {
Expand Down Expand Up @@ -77,7 +77,7 @@ public String registerDevice(final String apiRequestBodyAsJson) {
Long clientId = json.get(DeviceRegistrationApiConstants.clientIdParamName).getAsLong();
String registrationId = json.get(DeviceRegistrationApiConstants.registrationIdParamName).getAsString();
DeviceRegistration deviceRegistration = this.deviceRegistrationWritePlatformService.registerDevice(clientId, registrationId);
String response = gson.toJson(deviceRegistration);
String response = gson.toJson(deviceRegistration.getId());
return response;
}

Expand Down

0 comments on commit a42f9d5

Please sign in to comment.