Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Shields.IO Endpoint API #19418

Closed
OdinVex opened this issue Apr 18, 2022 · 7 comments
Closed

[Feature Request] Shields.IO Endpoint API #19418

OdinVex opened this issue Apr 18, 2022 · 7 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@OdinVex
Copy link

OdinVex commented Apr 18, 2022

Shields.IO supports custom endpoints to return information for badges. It'd be pretty neat for Gitea to have an endpoint to query various info to support it.

@techknowlogick techknowlogick added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Apr 18, 2022
@techknowlogick
Copy link
Member

Could you provide some links for documentation on what would be needed?

@OdinVex
Copy link
Author

OdinVex commented Apr 18, 2022

Could you provide some links for documentation on what would be needed?

https://shields.io/endpoint

@techknowlogick
Copy link
Member

Thanks for providing that information. I think this would be better suited for a 3rd party middleware, or 1st party support within shields, as otherwise we'd be duplicating all our endpoints to provide information in a specific format.

@6543
Copy link
Member

6543 commented Apr 22, 2022

-> badges/shields#4040 etc...

@OdinVex
Copy link
Author

OdinVex commented Apr 22, 2022

Some things can't necessarily be queried by Shields.io, I'd also prefer an air-gapped situation. I disagree, but your project. Besides, it'd have only needed one endpoint, nothing more, nothing complicated.

@6543
Copy link
Member

6543 commented Apr 23, 2022

they have fully github support, and githup does not implement there api either - so they muse be a way to do so

PS: they can reuse most of the github code anyway as gitea mimic most endpoints

@OdinVex
Copy link
Author

OdinVex commented Apr 23, 2022

they have fully github support, and githup does not implement there api either - so they muse be a way to do so

PS: they can reuse most of the github code anyway as gitea mimic most endpoints

Implementing an endpoint can save a lot of bandwidth instead of requiring them to download entire pages to parse. I get the impression you might not know what endpoint I was talking about...a queryable API specifically for Shields.io...?

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

3 participants