Added REST API for certificates in LMS

Description

  1.  

    1.  

      1.  

        1. What are the relevant tickets?
          fixes mitocw#230
          closes edx#11821

  1.  

    1.  

      1.  

        1. What's this PR do?
          Introduces a REST API for the certificates.

  1.  

    1.  

      1.  

        1. Where should the reviewer start?
          `lms/djangoapps/certificates/apis/v0/views.py`

  1.  

    1.  

      1.  

        1. How should this be manually tested?
          Create a certificate for a user for a course and, using the url `/api/certificates/v0/certificates/<username>/<course_id>`, check that only that user can see it.
          A (fake) certificate can be created using the `GeneratedCertificateFactory`: see
          `lms/djangoapps/certificates/apis/v0/tests/test_views.py` for an example.

  1.  

    1.  

      1.  

        1. Any background context you want to provide?
          It has been agreed that this API will be deprecated as soon as the [credentials](https://openedx.atlassian.net/wiki/display/AC/Credentials) will be deployed and the existent certificates will be migrated.
          For more info please read edx#11821

  1.  

    1.  

      1.  

        1. What gif best describes this PR or how it makes you feel?
          ![](http://i.giphy.com/uUfbtweIW3A7S.gif)

Activity

Show:
Joel Barciauskas
April 14, 2016, 7:15 PM

Much appreciated!

Jim Abramson
April 14, 2016, 7:14 PM

FYI I've finished a first round of review on this.

Joel Barciauskas
April 14, 2016, 1:44 PM

Thanks, Jim. It's MIT's current top priority, so it would be helpful for them to get some feedback ASAP so they can continue work.

Jim Abramson
April 11, 2016, 1:39 PM

we will groom the review ticket and queue it up for our next sprint (beg. Apr 20) per the normal process. If this is more urgent / time-sensitive, pls reach out and we'll figure out how to adjust plans / priorities.

Jim Abramson
April 8, 2016, 9:29 PM

I'll get back to you on Monday morning with an answer on this. cc:

Done

Assignee

Jim Abramson

Reporter

Edx Admin [Administrator]

Contributor Name

Giovanni Di Milia

Repo

edx/edx-platform

Customer

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 &amp; 2)

None

Platform Map Area (Levels 3 &amp; 4)

None

Blended Hour Utilization Percentage

None

edX Theme

None

edX Squad

None

Github Lines Added

None

Github Lines Deleted

None

Story Points

1

Priority

Unset