Using TAO REST API to build my own UI
Closed this issue · 1 comments
Hey guys,
I was searching for an e-testing open source platform/software that has an API to use for my own UI/app that will basically have my own:
- MCSA (Multiple Choice Single Answer)
- MCMA (Multiple Choice Multiple Answers)
- Answers by order (e.g. simple dropdown menus)
- Text answers
So, without building my own engine, I would like to benefit from TAO RESTful layer. I've been around the docs, and I can say they're pretty good written as in general, but in specific, I need some clarification about the REST API developed by TAO.
I've tested your composer packages to build the TAO server, but is there any composer packages that I can build exactly to fit my needs (my CRUD app) without using the whole product?
- I get 406 status on endpoint (doc) e.g. GET on this resource
/taoResultServer/QtiRestResults/getLatest
withtesttaker
asmytaoserver/myinstance.rdf#ixxxxx
same thing withdelivery
param
And I also don't understand why the params have an identifier like that (a uri)? Should I generate resource params like that when working on my app with the api?
UPDATE 1: I just forgot to include my auth creds (basic auth), still get a 400 Bad Request, which occurs when you include wrong params, but they're correct, see below:
curl -X GET --user user:pass --header 'Accept: application/json' -i http://MY-TAO-SERVER/taoResultServer/QtiRestResults/getLatest?testtaker=http://MY-TAO-SERVER/MY-INSTANCE.rdf#iXXXXXXXXXXX&delivery=http://MY-TAO-SERVER/MY-INSTANCE.rdf#iXXXXXXXXXXX