Rename methods saveNewCourse() and saveNewUser() to addCourse() and addUser() in restApi - refs #2149

pull/2487/head
Yannick Warnier 7 years ago
parent b00352a5b2
commit d7c5536909
  1. 4
      main/webservices/api/v2.php

@ -119,11 +119,11 @@ try {
$restApi->showLearningPath($lpId); $restApi->showLearningPath($lpId);
break; break;
case Rest::SAVE_COURSE: case Rest::SAVE_COURSE:
$data = $restApi->saveNewCourse($_POST); $data = $restApi->addCourse($_POST);
$restResponse->setData($data); $restResponse->setData($data);
break; break;
case Rest::SAVE_USER: case Rest::SAVE_USER:
$data = $restApi->saveNewUser($_POST); $data = $restApi->addUser($_POST);
$restResponse->setData($data); $restResponse->setData($data);
break; break;
case Rest::SUBSCRIBE_USER_TO_COURSE: case Rest::SUBSCRIBE_USER_TO_COURSE:

Loading…
Cancel
Save