Implement certificate generation and display system with search and verification#34
Draft
Implement certificate generation and display system with search and verification#34
Conversation
…h capabilities Co-authored-by: Hemavathi15sg <224925058+Hemavathi15sg@users.noreply.github.com>
Comment on lines
+80
to
+84
| catch (Exception ex) | ||
| { | ||
| Log.Error(ex, "Error searching for certificates"); | ||
| return StatusCode(500, new { message = "An error occurred while searching for certificates" }); | ||
| } |
Comment on lines
+111
to
+115
| catch (Exception ex) | ||
| { | ||
| Log.Error(ex, "Error retrieving certificate {CertificateId}", id); | ||
| return StatusCode(500, new { message = "An error occurred while retrieving the certificate" }); | ||
| } |
Comment on lines
+133
to
+137
| catch (Exception ex) | ||
| { | ||
| Log.Error(ex, "Error retrieving certificates for student {StudentId}", studentId); | ||
| return StatusCode(500, new { message = "An error occurred while retrieving certificates" }); | ||
| } |
Comment on lines
+155
to
+159
| catch (Exception ex) | ||
| { | ||
| Log.Error(ex, "Error retrieving certificates for course {CourseId}", courseId); | ||
| return StatusCode(500, new { message = "An error occurred while retrieving certificates" }); | ||
| } |
Comment on lines
+196
to
+200
| catch (Exception ex) | ||
| { | ||
| Log.Error(ex, "Error verifying certificate {Identifier}", identifier); | ||
| return StatusCode(500, new { message = "An error occurred while verifying the certificate" }); | ||
| } |
Comment on lines
+232
to
+236
| catch (Exception ex) | ||
| { | ||
| Log.Error(ex, "Error creating certificate"); | ||
| return StatusCode(500, new { message = "An error occurred while creating the certificate" }); | ||
| } |
…ystem implementation Co-authored-by: Hemavathi15sg <224925058+Hemavathi15sg@users.noreply.github.com>
…ber generation Co-authored-by: Hemavathi15sg <224925058+Hemavathi15sg@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement certificate generation and display feature
Implement certificate generation and display system with search and verification
Dec 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds digital certificate issuance for completed courses with search, verification, and printable display capabilities.
Backend Changes
API Endpoints (
CertificatesController)GET /api/certificates- Multi-criteria search (student name, certificate number, course/student ID)GET /api/certificates/verify/{identifier}- Certificate verification by ID or numberPOST /api/certificates- Certificate creation with auto-generated number and digital signatureService Layer (
CertificateService)Data Model (
CertificateDto)Frontend Changes
Certificate Search (
certificates.html,certificates.js)Certificate Viewer (
certificate-styles.css)Security
escapeHtml()to prevent XSSTesting
18 unit tests for
CertificateServicecovering search, creation, and verification flows.Screenshots
Search Interface

Search Results

Certificate Display

Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.