gorush/tests
Bo-Yi Wu a495d00eca docs: update testing command 2019-07-21 21:55:26 +08:00
..
README.md docs: update testing command 2019-07-21 21:55:26 +08:00
test.json test: add doc for testing gorush 2018-04-11 10:46:31 +08:00

README.md

Testing

How to test gorush with http request?

download bat tool

Download cURL-like tool for humans.

testing

see the JSON format:

{
  "notifications": [
    {
      "tokens": ["token_a", "token_b"],
      "platform": 1,
      "message": "Hello World iOS!"
    },
    {
      "tokens": ["token_a", "token_b"],
      "platform": 2,
      "message": "Hello World Android!"
    }
  ]
}

run the following command.

bat POST localhost:8088/api/push < tests/test.json