First run, for a 'new' device
curl -u "45fdfe87-7587-4f96-948f-5ef2efa59ade:a66e9fcc-e991-47d4-9ddb-c398dea957dd" -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"deviceToken" : "wPA91bHpbMXepp4odlb20vYOv0gQyNIyFu2X3OXR3TjqR8qecgWivimw_UiLPFgUBs_10Nys2TUwUyWlixrIta35NXW-5Z85OdXcbb_3s3p0qaa_a7NpFlaX9GpidK_BdQNMsx2gX8BrE4Uw7s22nPCcEn1U1_mo-T6hcF5unYt965PDwRTRss1","operatingSystem" : "Android","deviceType" : "Android","osVersion" : "5.0.1","alias":"matzew","categories" : ["foo","bar"]}' http://localhost:8080/ag-push/rest/registry/device
|
registers it, but the categories are not visible in the UI of the server
Second run (an update) of the same script:
curl -u "45fdfe87-7587-4f96-948f-5ef2efa59ade:a66e9fcc-e991-47d4-9ddb-c398dea957dd" -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"deviceToken" : "wPA91bHpbMXepp4odlb20vYOv0gQyNIyFu2X3OXR3TjqR8qecgWivimw_UiLPFgUBs_10Nys2TUwUyWlixrIta35NXW-5Z85OdXcbb_3s3p0qaa_a7NpFlaX9GpidK_BdQNMsx2gX8BrE4Uw7s22nPCcEn1U1_mo-T6hcF5unYt965PDwRTRss1","operatingSystem" : "Android","deviceType" : "Android","osVersion" : "5.0.1","alias":"matzew","categories" : ["foo","bar"]}' http://localhost:8080/ag-push/rest/registry/device
|
runs correctly and the categories are visible
|