[PR #1947] [MERGED] Egg API Import/Delete #1671

Closed
opened 2026-02-05 18:20:56 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1947
Author: @DaNussi
Created: 11/29/2025
Status: Merged
Merged: 12/16/2025
Merged by: @notAreYouScared

Base: mainHead: egg-api


📝 Commits (10+)

📊 Changes

4 files changed (+122 additions, -44 deletions)

View changed files

📝 app/Http/Controllers/Api/Application/Eggs/EggController.php (+39 -0)
app/Http/Requests/Api/Application/Eggs/ImportEggRequest.php (+14 -0)
📝 app/Services/Eggs/Sharing/EggImporterService.php (+66 -44)
📝 routes/api-application.php (+3 -0)

📄 Description

Added an endpoint for importing and deleting eggs via the api.


http://localhost/api/application/eggs/import?format=json

  • Create a new egg on the Panel. Returns the created/updated egg and an HTTP/201 status response on success
  • If no uuid is supplied a new one will be generated
  • If an uuid is supplied, and it already exists the old configuration get overwritten

http://localhost/api/application/eggs/{egg:id}

  • Delete eggs via id

http://localhost/api/application/eggs/{egg:uuid}/uuid

  • Delete eggs via uuid

This is the first time I'm working with PHP and any criticism is welcome. If anything needs to be changed let me know. 😄


🔄 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/pelican-dev/panel/pull/1947 **Author:** [@DaNussi](https://github.com/DaNussi) **Created:** 11/29/2025 **Status:** ✅ Merged **Merged:** 12/16/2025 **Merged by:** [@notAreYouScared](https://github.com/notAreYouScared) **Base:** `main` ← **Head:** `egg-api` --- ### 📝 Commits (10+) - [`c1cb2ec`](https://github.com/pelican-dev/panel/commit/c1cb2ecb183420ee517f0368a323f72a9e0912e0) Add egg import functionality - [`f42d39f`](https://github.com/pelican-dev/panel/commit/f42d39f192b1b8dca633a32900fe4fe63f189b6c) Add egg delete functionality - [`693a9da`](https://github.com/pelican-dev/panel/commit/693a9dafe1a982857f9d656bd3a0fd7d31b7bf7b) Fixed issues from https://github.com/pelican-dev/panel/pull/1947 and https://github.com/pelican-dev/panel/actions/runs/19784297099/job/56688622673?pr=1947 - [`da7ff9e`](https://github.com/pelican-dev/panel/commit/da7ff9e1d0429e096f07b1d6e982e992038b20dd) Fixed issues from https://github.com/pelican-dev/panel/pull/1947 and https://github.com/pelican-dev/panel/actions/runs/19784297099/job/56688622673?pr=1947 - [`0f46ee2`](https://github.com/pelican-dev/panel/commit/0f46ee283631b4cd933cf31ce7154c5a5a177f10) Fixed issues from https://github.com/pelican-dev/panel/actions/runs/19784447438/job/56688982943?pr=1947 - [`5024b96`](https://github.com/pelican-dev/panel/commit/5024b96cc3b0cfe655669c363ce810c47618b821) Update routes/api-application.php - [`0c7de60`](https://github.com/pelican-dev/panel/commit/0c7de60906ee5ec0177b343731e8a315aa033b43) removed try catch from the api (not needed) - [`153dd13`](https://github.com/pelican-dev/panel/commit/153dd1311e08d4a5016d558b41fb779e03094e3f) Merge branch 'pelican-dev:main' into egg-api - [`7ed0c90`](https://github.com/pelican-dev/panel/commit/7ed0c90224d9a38eca8ba51e89694211924c89e0) Remove unused exception import from EggController - [`e4b3dd1`](https://github.com/pelican-dev/panel/commit/e4b3dd1a0df1a805d5dbb60978d4dbc579959786) cleanup import service ### 📊 Changes **4 files changed** (+122 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `app/Http/Controllers/Api/Application/Eggs/EggController.php` (+39 -0) ➕ `app/Http/Requests/Api/Application/Eggs/ImportEggRequest.php` (+14 -0) 📝 `app/Services/Eggs/Sharing/EggImporterService.php` (+66 -44) 📝 `routes/api-application.php` (+3 -0) </details> ### 📄 Description ## Added an endpoint for _importing_ and _deleting_ eggs via the api. --- > http://localhost/api/application/eggs/import?format=json - Create a new egg on the Panel. Returns the created/updated egg and an HTTP/201 status response on success - If no uuid is supplied a new one will be generated - If an uuid is supplied, and it already exists the old configuration get overwritten --- > http://localhost/api/application/eggs/{egg:id} - Delete eggs via id > http://localhost/api/application/eggs/{egg:uuid}/uuid - Delete eggs via uuid --- This is the first time I'm working with PHP and any criticism is welcome. If anything needs to be changed let me know. 😄 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 18:20:56 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#1671