panel icon indicating copy to clipboard operation
panel copied to clipboard

Expand Eggs api

Open DomiiBunn opened this issue 3 years ago • 11 comments

Is your feature request related to a problem? Please describe. As of writting a UI for Eggs an idea crept in of adding a Auto Import button. Whoever it is not possible with the current api

Describe the solution you'd like An ability to GET to the panels api with

  • Admin Username
  • Admin Password(this is for ease of use not to require a key) Returning a list of eggs and nests, maybe a token so the user can be rememberd etc

than to POST to the panel with above authentication and

  • Nest id
  • Egg json that would add the egg into the nest

Describe alternatives you've considered Manually adding the egg

Additional context The page would be open source regardless showing no malichous use and everything is planned to be done within the frontend therefore never bouncing users credentials around

DomiiBunn avatar Dec 12 '20 15:12 DomiiBunn

If I add an endpoint for uploading an egg configuration it'll be under the same style as all the other admin endpoints.

DaneEveritt avatar Dec 12 '20 17:12 DaneEveritt

Sure. Key authentication works fine :) the endpoints would be supper useful tho

On Sat, Dec 12, 2020, 18:28 Dane Everitt [email protected] wrote:

If I add an endpoint for uploading an egg configuration it'll be under the same style as all the other admin endpoints.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pterodactyl/panel/issues/2864#issuecomment-743787708, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMK42CQGLQRQNL2OOBUYAXDSUOR2HANCNFSM4UYIHQWA .

DomiiBunn avatar Dec 12 '20 17:12 DomiiBunn

👍 would love to be able to make post requests to create eggs with the idea that I could write a script to grab everything from a repo (e.g. https://github.com/parkervcp/eggs) and then upload each of them if they don't exist

nicholasrobertm avatar Apr 13 '21 03:04 nicholasrobertm

There should be an option in the panel to enter the URL from where the egg will be fetched. So you don't have to download eggs from GitHub and then upload it. Instead, you would just put the "View raw" Github link to the egg and it would be imported.

anondev-sudo avatar Sep 30 '21 10:09 anondev-sudo

That is also a plan

On Thu, Sep 30, 2021, 12:06 AnonDev @.***> wrote:

There should be an option in the panel to enter the URL from where the egg will be fetched. So you don't have to download eggs from GitHub and then upload it. Instead, you would just put the "View raw" Github link to the egg and it would be imported.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pterodactyl/panel/issues/2864#issuecomment-931180631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMK42CXY4AKX5NAOMOPUWFDUEQZA3ANCNFSM4UYIHQWA .

DomiiBunn avatar Sep 30 '21 10:09 DomiiBunn

There should be an option in the panel to enter the URL from where the egg will be fetched. So you don't have to download eggs from GitHub and then upload it. Instead, you would just put the "View raw" Github link to the egg and it would be imported.

#3479

FoksVHox avatar Sep 30 '21 18:09 FoksVHox

In v2 there has been an endpoint added for POSTing the raw egg JSON.

matthewpi avatar Oct 06 '21 17:10 matthewpi

There should be an option in the panel to enter the URL from where the egg will be fetched. So you don't have to download eggs from GitHub and then upload it. Instead, you would just put the "View raw" Github link to the egg and it would be imported.

Will be there this too?

anondev-sudo avatar Oct 06 '21 18:10 anondev-sudo

There should be an option in the panel to enter the URL from where the egg will be fetched. So you don't have to download eggs from GitHub and then upload it. Instead, you would just put the "View raw" Github link to the egg and it would be imported.

Will be there this too?

Currently that is not there, it may be added later.

matthewpi avatar Oct 06 '21 18:10 matthewpi

Has there been any traction on auto-updating eggs?

This has been mentioned it two other duplicate issues...I think only having it update any eggs that are listed in parker's eggs on GitHub, is an acceptable first step

ZaxLofful avatar Jan 31 '24 23:01 ZaxLofful

As far as I can understand no.

There was some work put in by me in the past however it's been dropped due to time constraints. I think this could be atcived by an external service with utilizing the panels API.

There was a plan to have an official UI for eggs that would provide a bit more of a simplified managment but it's been stuck in progress afaik.

DomiiBunn avatar Feb 02 '24 22:02 DomiiBunn