# @arke/core
This is the core package of arke, the push notification system made in Caffeina.


# Notes
## POST /subscribe
+ Request (multipart/form-data)

        {
            "device_token": string,
            "channel": string | null,
            "app_id": string,
            "app_version": string,
            "app_deploytype": "development" | "production",
            "os": "ios" | "android"
        }

+ Response 200

		{
			"success": {
				"code": 200,
				"message": "Iscrizione al canale default eseguita con successo"
			},
			"attributes": {
				"type": "success"
			}
		}
		
+ Response 400

		{
			"message": "Parametri mancanti",
			"error": "400 : ",
			"code": 400,
			"response": {
				"error": {
					"code": 400,
					"message": "Parametri mancanti",
					"errors": {
						"device_token": "Questo valore non può essere vuoto"
					}
				},
				"attributes": {
					"type": "error"
				}
			}
		}

## POST /unsubscribe
+ Request (multipart/form-data)

        {
            "device_token": string,
            "channel": string | null,
            "app_deploytype": "development" | "production"
        }

+ Response 200

		{
			"success": {
				"code": 200,
				"message": "Eliminazione dal canale default eseguita con successo"
			},
			"attributes": {
				"type": "success"
			}
		}

