Removed 'username' from POST message/emergency + POST message/event (because already in session)
This commit is contained in:
parent
27942b8b82
commit
81449426a5
|
@ -30,7 +30,7 @@ class message
|
|||
|
||||
$wsi->send([
|
||||
"operation" => "PostMessage",
|
||||
"message" => $message,
|
||||
"message" => $_SESSION['NAME'],
|
||||
"username" => $username,
|
||||
"location" => $location,
|
||||
//TODO implémenter la récupération d'id depuis la bdd
|
||||
|
@ -90,7 +90,7 @@ class message
|
|||
$wsi->send([
|
||||
"operation" => "PostMessage",
|
||||
"message" => $message,
|
||||
"username" => $username,
|
||||
"username" => $_SESSION['NAME'],
|
||||
"location" => $location,
|
||||
"type" => $type,
|
||||
//TODO implémenter la récupération d'id depuis la bdd
|
||||
|
|
|
@ -100,7 +100,6 @@
|
|||
"parameters": {
|
||||
"URL_0": { "description": "code departement, si le paramètre n'est pas fourni le message est envoyé en broadcast", "type" : "numeric", "optional" : true },
|
||||
"message": { "description": "message a publier", "type": "text" },
|
||||
"username": { "description": "username affiché dans le channel", "type": "varchar(3,20)" },
|
||||
"location": { "description": "coordonés GPS du message, des coordonnées invalide ne seront pas affiché", "type": "array<numeric>" }
|
||||
}
|
||||
},
|
||||
|
@ -136,7 +135,6 @@
|
|||
"parameters": {
|
||||
"URL_0": { "description": "code departement, si le paramètre n'est pas fourni le message est envoyé en broadcast", "type": "numeric", "optional": true },
|
||||
"message": { "description": "message a publier", "type": "text", "optional": false },
|
||||
"username": { "description": "username affiché dans le channel", "type": "varchar(3,20)", "optional": false },
|
||||
"type": { "description": "Flag du type d'evenement", "type": "numeric" },
|
||||
"location": { "description": "coordonés GPS du message, des coordonnées invalide ne seront pas affiché", "type": "array<numeric>" }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue