$ git clone https://github.com/pedromarinho/pass-service.git
$ cd pass-service
$ docker build -t pass-service .
$ docker run -p 3000:3000 -v $PWD:/src/ pass-service
$ npm install
$ npm run start
POST http://SERVER_URL:PORT/pass/
- Set your test device to use http (in Settings->Developer)
- On the device, access the url: http://SERVER_URL:PORT/v1/passes/:passTypeId/:serialNumber passing the pass type id and serial number.
- Install the pass in the Apple Wallet.
- Make changes to the pass template.
- Send a request PUT http://SERVER_URL:PORT/pass/:passTypeId/:serialNumber passing the pass type id and serial number. A push notification will be sent to the registered device and the pass will be updated automatically.
The complete specification can be found in the PassKit Web Service Reference.
POST http://SERVER_URL:PORT/v1/devices/<deviceId>/registrations/<passTypeId>/<serialNumber>
GET http://SERVER_URL:PORT/v1/devices/<deviceId>/registrations/<passTypeId>?passesUpdatedSince
GET http://SERVER_URL:PORT/v1/passes/<passTypeId>/<serialNumber>
DELETE http://SERVER_URL:PORT/v1/devices/<deviceId>/registrations/<passTypeId>/<serialNumber>