Пример #1
0
 private function insertDossier()
 {
     if ($this->get_request_method() != "POST") {
         $this->response('', 406);
     }
     $dossier = new Dossier();
     $success = $dossier->AjouterDossier();
     if ($success) {
         $this->response($this->json($success), 200);
     } else {
         $this->response('', 204);
     }
     //"No Content" status
 }