pluginhub: add endpoints for generating shields.io badges #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds two new endpoints to the
pluginhub
portion of the API which can be used with https://shields.io to generate README badges for Github pages. These endpoints would be used with theEndpoint Badges
portion of the shields.io website (https://shields.io/badges/endpoint-badge)I'm not sure if this is actually feasible within this API as the
runlite-{version}
part will change with every release but I figured I'd PR it anyway. Maybe the API can supportlatest-release
as a version to support this PR? If not feel free to close this./shields/installs/plugin/{pluginName}
/shields/rank/plugin/{pluginName}
Example shields.io format (assuming
latest-release
would work):https://img.shields.io/endpoint?url=https://api.runelite.net/latest-release/pluginhub/shields/installs/plugin/quest-helper
I copied these URL paths from my personal website, if they are too verbose let me know and I can change them.
I was able to test this functionality through IntelliJ Ultimate Edition. I used the below
generated-requests.http
file to populate dummy data:pluginhub
endpoint (unchanged)plugin value exists:
plugin value does not exist: