-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add_courses_session code is wrong for this file #5504
Comments
I assume this should look like this but I am not sure its working, `<?php /* For licensing terms, see /license.txt */ require_once DIR.'/../../../../vendor/autoload.php';
use GuzzleHttp\Client as Client; // set your URL, username and password here to use it for all webservices in this test file. /**
/**
$apiKey = authenticate(); //adding courses with id 1 and 2 to session 2 |
Describe
REST API V2 does not work for Adding Courses to a Session. The code in the example file is the same as adding users to a session, which is working fine. As you can see in the screen shot the code even here on the project is wrong.
Screenshots
![Screenshot 2024-05-13 at 20 09 53](https://private-user-images.githubusercontent.com/161403104/330145888-152fd183-43c9-44a9-9e59-ad55dfd9982f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNjUxNTMsIm5iZiI6MTcyNDI2NDg1MywicGF0aCI6Ii8xNjE0MDMxMDQvMzMwMTQ1ODg4LTE1MmZkMTgzLTQzYzktNDRhOS05ZTU5LWFkNTVkZmQ5OTgyZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMVQxODI3MzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNDM5ZWE2NzI2YjEwNTRiZjJmMGQzZDE3ZWVmMmFkMThiYjMwMTM0ODRhMzZhZjc2MTY0NWNmMDMyYzg1N2M2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.OfOFDiPqHsq2Pw9WBZyuwRu-yqHcAX6V5FPLUWzztxA)
Expected behavior
I expected an error when navigating to the REST API to send back some message after adding a course or courses to using the example file for this
Desktop (please complete the following information):
**Server
Additional context
code is obviously wrong
The text was updated successfully, but these errors were encountered: