UnifiedPush RESTful Endpoint 1.0.3

Path: / registry / device

RESTful API for Device registration. The Endpoint is protected using HTTP Basic (credentials VariantID:secret).
 curl -u "variantID:secret"
   -v -H "Accept: application/json" -H "Content-type: application/json"
   -X POST
   -d '{
     "deviceToken" : "someTokenString",
     "deviceType" : "iPad",
     "operatingSystem" : "iOS",
     "osVersion" : "6.1.2",
     "alias" : "someUsername or email adress...",
     "categories" : ["football", "sport"]
   }'
   https://SERVER:PORT/context/rest/registry/device
 
Details about JSON format can be found HERE!


Resources
NameDescription
importerAPI for uploading JSON file to allow massive device registration (aka import).
{token}RESTful API for Device unregistration.

Method Summary
ResourceDescription
POST /registry/deviceRESTful API for Device registration.

Method Detail

RESTful API for Device registration. The Endpoint is protected using HTTP Basic (credentials VariantID:secret).

 curl -u "variantID:secret"
   -v -H "Accept: application/json" -H "Content-type: application/json"
   -X POST
   -d '{
     "deviceToken" : "someTokenString",
     "deviceType" : "iPad",
     "operatingSystem" : "iOS",
     "osVersion" : "6.1.2",
     "alias" : "someUsername or email adress...",
     "categories" : ["football", "sport"]
   }'
   https://SERVER:PORT/context/rest/registry/device
 
Details about JSON format can be found HERE!

Input:
org.jboss.aerogear.unifiedpush.api.Installation
Output:
javax.ws.rs.core.Response
Produces:
application/json
Consumes:
application/json
HTTP return codes:
200 - (OK) Successful storage of the device metadata.
400 - (Bad Request) The format of the client request was incorrect (e.g. missing required values).
401 - (Unauthorized) The request requires authentication.
404 - (Not Found) The requested Variant resource does not exist.

UnifiedPush RESTful Endpoint 1.0.3