@Controller public class AppRegistrationController extends Object
| Constructor and Description |
|---|
AppRegistrationController() |
| Modifier and Type | Method and Description |
|---|---|
List<AppDetails> |
get()
Displays all the registerations
|
void |
register(String json)
The payload will look something similar
{
"appInfo": {
"appId": "org.antennae.gcmtests.gcmtest",
"gcmRegistrationId": "gcm-registrationId-Gelk9jtQ90kphtdQ",
"appVersion": 1,
"firstInstallTime": 1437629332302,
"lastUpdateTime": 1437629332302
},
"deviceInfo": {
"deviceId": "000000000000000",
"networkCountryIso": "",
"networkOperatorId": "",
"networkOperatorName": ""
}
}
|
@RequestMapping(value="/api/registration",
method=POST)
@ResponseBody
public void register(@RequestBody
String json)
json - @RequestMapping(value="/api/registration",
method=GET)
@ResponseBody
public List<AppDetails> get()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.