views.py
5.15 KB
-
URL endpoint for requesting certificate generation · 0f906d5a
* API endpoint for certificate generation, a post with student id and course id requests that a cert be generated for that student for that course, using the usual grading and certificate machinery (ie, it does not imply whitelisting, though whitelists and blacklists will be respected) * Logs each request as it comes in * Calls xq.add_cert() and consequently, does grading synchronously on this app host and then queues request for certificate agent. * This version is aware of Stanford's CME Registration hack, which creates a professional_designation field, used to carry titles such as PhD or Msc. This now gets passed in to the certification call * example usage: ``` curl --data "student_id=9999&course_id=Stanford/2013/Some_Class" http://127.0.0.1:8000/request_certificate ``` * TODO: - make grading calls into a celery task so they happen asynchronously - needs tests - needs pep8/pylint
Joe Blaylock committed