[PR #2390] [MERGED] [API]Add more enpoints to API #3746

Closed
opened 2026-02-26 13:34:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/2390
Author: @michelroegl-brunner
Created: 2/14/2025
Status: Merged
Merged: 2/14/2025
Merged by: @MickLesk

Base: mainHead: api_pagination


📝 Commits (2)

📊 Changes

1 file changed (+283 additions, -0 deletions)

View changed files

📝 api/main.go (+283 -0)

📄 Description

✍️ Description

This PR adds a few more enpoints to support Pagination.

Prerequisites

Before this PR can be reviewed, the following must be completed:

  • Self-review performed – Code follows established patterns and conventions.
  • Testing performed – Changes have been thoroughly tested and verified.

🛠️ Type of Change

  • New feature – Adds new, non-breaking functionality.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/2390 **Author:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Created:** 2/14/2025 **Status:** ✅ Merged **Merged:** 2/14/2025 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `api_pagination` --- ### 📝 Commits (2) - [`668f137`](https://github.com/community-scripts/ProxmoxVE/commit/668f137adfe1ec0a769806e022ca73011e84c1c5) Add pagination to API - [`bf31d40`](https://github.com/community-scripts/ProxmoxVE/commit/bf31d40366acd49ba90a0d064d0b64faa3dbd9ef) Add pagination to API ### 📊 Changes **1 file changed** (+283 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/main.go` (+283 -0) </details> ### 📄 Description ## ✍️ Description <!-- Provide a clear and concise description of your changes. --> This PR adds a few more enpoints to support Pagination. - https://api.community-scripts.org/data/nsapp?nsapp=debian -> Get all entries by App Name - https://api.community-scripts.org/data/summary -> Total Count, Status Counts (installed, done, failed), Total number by APP - https://api.community-scripts.org/data/paginated?page=1&limit=5 -> Paginated Data, with pagenumber and Lines per page - https://api.community-scripts.org/data/date?start_date=2025-02-01&end_date=2025-02-14 -> Get With DateRange - https://api.community-scripts.org/data/status?status=done -> Get all by status - https://api.community-scripts.org/data/os?os_type=debian&os_version=12 -> Get by Operating System - https://api.community-scripts.org/data/errors -> Gets each error and its count. ## ✅ Prerequisites Before this PR can be reviewed, the following must be completed: - [X] **Self-review performed** – Code follows established patterns and conventions. - [X] **Testing performed** – Changes have been thoroughly tested and verified. ## 🛠️ Type of Change - [X] ✨ **New feature** – Adds new, non-breaking functionality. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 13:34:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#3746
No description provided.