[PR #53] [CLOSED] Add api endpoints #72

Closed
opened 2026-02-27 22:07:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sibprogrammer/owp/pull/53
Author: @punkeel
Created: 2/12/2015
Status: Closed

Base: masterHead: add_api_endpoints


📝 Commits (4)

  • d20ab08 Add API to manage backups and get stats of a virtual server
  • ac8b915 Fix quotes
  • 567821a Add API endpoint /api/virtual_servers/reinstall
  • 5fbd145 Fix formating

📊 Changes

2 files changed (+201 additions, -1 deletions)

View changed files

app/controllers/api/backups_controller.rb (+118 -0)
📝 app/controllers/api/virtual_servers_controller.rb (+83 -1)

📄 Description

This patch adds API endpoints to manage backups (/api/backup/{list, list_data, create, delete, restore}
and fetch status of a virtual server (/api/virtual_servers/{get_stats?id=X, reinstall})

Arguments for backups/create are:

  • id (virtual server ID)
  • description (shown in web panel and in list_data)
  • ve_state ("live", "stop", "suspend") State the virtual server will be put during the backup

Arguments for backups/delete are:

  • id (of the backup)

Arguments for backups/restore are:

  • id (of the backup)

Arguments for /virtual_servers/reinstall are:

  • id: ID of the virtual server
  • password: the new password for root user
  • orig_os_template: the original template name, i.e. centos-7-x86_64-minimal

Fixes #51


🔄 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/sibprogrammer/owp/pull/53 **Author:** [@punkeel](https://github.com/punkeel) **Created:** 2/12/2015 **Status:** ❌ Closed **Base:** `master` ← **Head:** `add_api_endpoints` --- ### 📝 Commits (4) - [`d20ab08`](https://github.com/sibprogrammer/owp/commit/d20ab0818fb5eab225829f9aaa825f39580969aa) Add API to manage backups and get stats of a virtual server - [`ac8b915`](https://github.com/sibprogrammer/owp/commit/ac8b9156ce51d148a5434023f152e74c052629ce) Fix quotes - [`567821a`](https://github.com/sibprogrammer/owp/commit/567821a40be979fd069f76daf51e1b6dfd25b32b) Add API endpoint /api/virtual_servers/reinstall - [`5fbd145`](https://github.com/sibprogrammer/owp/commit/5fbd1451b88e21a8e31987846a7afe016a596f22) Fix formating ### 📊 Changes **2 files changed** (+201 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `app/controllers/api/backups_controller.rb` (+118 -0) 📝 `app/controllers/api/virtual_servers_controller.rb` (+83 -1) </details> ### 📄 Description This patch adds API endpoints to manage backups (/api/backup/{list, list_data, create, delete, restore} and fetch status of a virtual server (/api/virtual_servers/{get_stats?id=X, reinstall}) Arguments for backups/create are: - id (virtual server ID) - description (shown in web panel and in list_data) - ve_state ("live", "stop", "suspend") State the virtual server will be put during the backup Arguments for `backups/delete` are: - id (of the backup) Arguments for `backups/restore` are: - id (of the backup) Arguments for `/virtual_servers/reinstall` are: - id: ID of the virtual server - password: the new password for root user - orig_os_template: the original template name, i.e. centos-7-x86_64-minimal Fixes #51 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:07:30 +03:00
Sign in to join this conversation.
No labels
pull-request
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/owp#72
No description provided.