TAO 3.3 is released. Check out the announcement here - https://forum.taotesting.com/discussion/593/tao-community-edition-3-3-released#latest
TAO 3.2 - Create Test Taker from API - Is there any API that still work?
I'm refering to this guide. It seem to be outdated.
https://hub.taotesting.com/articles/rest-services-layer-tutorial
Then I found this reference:
https://github.com/oat-sa/extension-tao-testtaker/blob/master/doc/swagger.json
I'm not really understand how to use that and test on postman. Is there any guide how to use API to create new Test Taker and assign it to a group? Existing discussion seem to not reach any conclusion.
Please advice. Thank You.
Comments
This is the code I'm using right now.
`
$process = curl_init("http://myhost/apps/reqt/taoTestTaker/api/testTakers");
curl_setopt($process, CURLOPT_POST, 1);
`
Return result:
406
Why did I get this 406 which mean "Not Acceptable The request can not be accepted by the server."
Please advice.
"Accept: application/x-www-form-urlencoded" is probably incorrect, try changing it to
"Accept: application/json"
already tried that as well. still not working.
It's working on 3.3. Maybe try upgrading.
i do agree the documentation is sorely lacking update. while not sure if it's going to ever be refreshed for the community version (both the code & the docs) but i can confirm the the create test taker is working with latest community version. make sure that you run it with php7.2 or below as it currently not supporting newer version.
1. make sure you hit the correct URI and it responding
2. dont forget make it POST
3. basic authentication with privileged user
4. Accept:application/json in the headers (nothing else)
5. get params (login,password, userLanguage) are required
that should be enough