|
|
|
This method starts performing routines that are defined in `notifier.py`
|
|
|
|
|
|
|
|
##### Request details:
|
|
|
|
* Method: `POST`
|
|
|
|
* URL: `/api/v1/push`
|
|
|
|
|
|
|
|
##### Parameters:
|
|
|
|
* `server_url`: Wilma Server's url (include the Slug ID if needed)
|
|
|
|
* `session`: Wilma Server's session cookie value (read more below)
|
|
|
|
* `iid_key`: FCM Client ID (or as google calls it "Instance ID")
|
|
|
|
* `apikey`: This is optional, required only if apikey check is turned on in `notifier.py`. (Can also be checked from client using a GET request to `/`, find JSON object `details`, and its boolean `apikey_required`)
|
|
|
|
|
|
|
|
#### Response:
|
|
|
|
`200 OK`
|
|
|
|
````
|
|
|
|
{
|
|
|
|
"status": true
|
|
|
|
}
|
|
|
|
````
|
|
|
|
|
|
|
|
#### Error Response:
|
|
|
|
````
|
|
|
|
{
|
|
|
|
"status": false,
|
|
|
|
"cause": "Example cause of this error"
|
|
|
|
}
|
|
|
|
```` |
|
|
\ No newline at end of file |