Skip to content

API Endpoint: Sitemap-Generation#1641

Merged
timbastin merged 2 commits into
mainfrom
1637-api-endpoint-sitemap-generation
Feb 6, 2026
Merged

API Endpoint: Sitemap-Generation#1641
timbastin merged 2 commits into
mainfrom
1637-api-endpoint-sitemap-generation

Conversation

@Hubtrick-Git
Copy link
Copy Markdown
Collaborator

@Hubtrick-Git Hubtrick-Git commented Feb 5, 2026

Added endpoint which returns a list of cve ids based on 2 query parameters limit and offset which edit the query.

@Hubtrick-Git Hubtrick-Git self-assigned this Feb 5, 2026
Copilot AI review requested due to automatic review settings February 5, 2026 19:44
@Hubtrick-Git Hubtrick-Git linked an issue Feb 5, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a new API endpoint /api/v1/vulndb/list-ids-by-creation-date/ for retrieving CVE IDs sorted by creation date, intended for sitemap generation purposes.

Changes:

  • Added new GET endpoint for listing CVE IDs by creation date with optional offset and limit query parameters
  • Endpoint returns CVE IDs with their creation timestamps in descending order
  • Supports pagination through offset/limit parameters

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 11 comments.

File Description
router/vulndb_router.go Registered new GET route /list-ids-by-creation-date/ to the vulndb router
controllers/vulndb_controller.go Implemented ListIDsByCreationDate controller method with query parameter handling and database querying

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
Comment thread controllers/vulndb_controller.go
@timbastin timbastin merged commit c0e03c1 into main Feb 6, 2026
17 of 19 checks passed
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

Successfully merging this pull request may close these issues.

API Endpoint: Sitemap-Generation

3 participants