Skip to content
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

update api certificate_invalidation_view to DRF #35365

Open
Tracked by #35057
awais786 opened this issue Aug 23, 2024 · 0 comments
Open
Tracked by #35057

update api certificate_invalidation_view to DRF #35365

awais786 opened this issue Aug 23, 2024 · 0 comments
Assignees

Comments

@awais786
Copy link
Contributor

awais786 commented Aug 23, 2024

Steps to test via Postman.

  1. pass this URL in postman as post request.
    form-data: user = student id ( compulsory )
    : notes = your notes ( this is optional param

expected result:

{
    "id": 4,
    "user": "admin",
    "invalidated_by": "admin",
    "created": "September 24, 2024",
    "notes": "testing notes"
}
  1. Now try delete method.
    send data as raw->json.

Steps to verify.

  1. Generate a certificate for a student enrolled in the course. ( or add a cert in this table directly admin/certificates/generatedcertificate/)
  2. Enable the "Certificates" tab on the Instructor Dashboard.
  3. Navigate to the following link (replace with your course ID). ( instructor dashboard and certificates tab )
  4. Under the "Invalidate Certificates" section, enter the student's ID and a comment. Upon successful invalidation, the entry will be added to the invalidation table, and a button to remove the entry will appear.

Screenshot 2024-09-24 at 12 51 17 PM

On success it will show the removal button.

Screenshot 2024-09-24 at 12 51 26 PM
  1. Press the remove button it will remove the entry from table.
@awais786 awais786 changed the title Certificate_invalidation_view update certificate_invalidation_view to DRF Aug 23, 2024
@awais786 awais786 self-assigned this Sep 23, 2024
@awais786 awais786 changed the title update certificate_invalidation_view to DRF update api certificate_invalidation_view to DRF Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant