ReVanced / revanced-releases-api

🚀 JSON API for ReVanced Releases
https://releases.revanced.app
GNU Affero General Public License v3.0
79 stars 16 forks source link

feat: prereleases support #94

Closed Ushie closed 1 year ago

Ushie commented 1 year ago

Is your feature request related to a problem? Please describe. No way of getting pre-releases

Describe the solution you'd like Add pre-releases

Describe alternatives you've considered Provide pre-releases

Additional context Need pre-releases

Ushie commented 1 year ago

I can PR this, @alexandreteles can you tell me if you're fine with my PRing the following?:

 {
   "tools": [
     {
       "repository": "string",
       "version": "string",
       "timestamp": "string",
       "name": "string",
       "size": "string",
       "browser_download_url": "string",
+      "browser_prerelease_download_url": "string",
       "content_type": "string"
     }
   ]
 }

or is there a specific way you'd like to do it

alexandreteles commented 1 year ago

@Ushie Sorry for not getting back to you sooner. You're proposing that the API return the last pre-release version on /tools, correct? If so, I'm completely fine with it. Remember that this will likely double the time the endpoint requires to generate data the first time it is called after cache expiration, but it should still be acceptable. Please send the PR and add me to it.

oSumAtrIX commented 1 year ago

/tool/toolA /tool/toolB

And so on would solve the issue

alexandreteles commented 1 year ago

/tool/toolA /tool/toolB

And so on would solve the issue

There are no current provisions for that, but that could be done.

indrastorms commented 1 year ago

isn't #93 relevent for this issue?

oSumAtrIX commented 1 year ago

https://github.com/revanced/static-api This might supersede the entire repository

alexandreteles commented 1 year ago

isn't #93 relevent for this issue?

Yes, but the development of the rewrite is stalled as we are testing a new implementation. This is why this issue is still open.