godot-asset-library icon indicating copy to clipboard operation
godot-asset-library copied to clipboard

Create REST API for version bumps

Open brandonlamb opened this issue 7 years ago • 7 comments

Basic idea was not wanting to update the web site every time you release a new version/release. Could a CI system create a new github version and then post to this new theoretical API to tell the assetlibrary that there is a new version to use?

Or are there plans to make this more like maven/composer/npm eventually?

import "com.brandonlamb:pool:1.0.7"

brandonlamb avatar Nov 01 '16 06:11 brandonlamb

Well, the basic idea for which we disallow edits without moderation is so that we can check the new version for vulnerabilities and whatnot... though we might like to revise this idea if we would like to transfer the responsibility of any bad code to asset authors.

bojidar-bg avatar Nov 01 '16 11:11 bojidar-bg

I think this is necessary. I am thinking the same, I would like to automate new versions detection and download into a special directory as many package manager does (e.g. npm, bower).

Just releasing a Public REST API would give the community the chance to have their way through it.

arypbatista avatar Feb 04 '17 17:02 arypbatista

There is a public REST api, just nobody has documented it yet...

bojidar-bg avatar Feb 04 '17 18:02 bojidar-bg

Can somebody give me a hint on how to use it? I have been walking through the code but haven't seen any way to set up a request so it returns a JSON response instead of rendered HTML.

arypbatista avatar Feb 04 '17 19:02 arypbatista

@arypbatista Use /api/...., it returns the exact same data, just unrendered

bojidar-bg avatar Feb 04 '17 19:02 bojidar-bg

Any updates on this? Would be nice to set up GitHub Actions to have a CI publish new versions of plugins instead of having to do it manually.

d-bucur avatar May 04 '23 12:05 d-bucur

Any updates on this? Would be nice to set up GitHub Actions to have a CI publish new versions of plugins instead of having to do it manually.

Last year, someone made a GitHub Action to update an asset on the asset library automatically. Unfortunately, I don't have the link to it and don't remember their username either.

Calinou avatar May 04 '23 12:05 Calinou