-
Notifications
You must be signed in to change notification settings - Fork 11
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
Provide data in json via very simple API, suitable for further analysis by the users #87
Comments
There already is a simple API, actually. The front end uses it directly. No authentication is necessary. Would you be interested in documenting it? These are the only endpoints: https://github.com/tenex/opensourcecontributors/blob/master/ghc-app/controller.go#L34 |
Hmm. I tried all those endpoints, and the /user... ones return html, not json. E.g. https://opensourcecontributo.rs/user/nealmcb The others were just 404 for me. Am I missing something? |
Yeah, the missing piece of the puzzle is that nginx routes to the API only under the https://opensourcecontributo.rs/api/user/nealmcb |
Indeed - thank you! I hope to find time to come back to provide proper documentation, but here is an API usage example, in Python, for how to retrieve all events for a user, and hints on sorting them out:
|
See also:
|
As noted in #5, #6, #83, #86, etc, users are often interested in further analysis of the results of their searches.
One simple way to help some of them would be to provide a very simple API to
opensourcecontributors
to provide the search results data in json format. It would ideally be structured so as to make it easy for users, via the github api, and their own language of choice, to do further queries and analysis. A few examples would go a long way.This would probably also result in code that was useful for implementing the feature requests listed above.
The text was updated successfully, but these errors were encountered: