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

Add support for the Simple API #33

Open
shenanigansd opened this issue Jun 30, 2023 · 1 comment
Open

Add support for the Simple API #33

shenanigansd opened this issue Jun 30, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@shenanigansd
Copy link
Member

The discussion in https://discord.com/channels/803025117553754132/803025117995073578/1124057523348062248 reminded me that the legacy JSON API is in fact, legacy, and that I need to work on looking at pulling data via the Simple API.

@shenanigansd shenanigansd added bug Something isn't working question Further information is requested labels Jun 30, 2023
@shenanigansd shenanigansd self-assigned this Jun 30, 2023
@shenanigansd shenanigansd changed the title Switch to the simple API? Support the Simple API Jul 22, 2023
@shenanigansd shenanigansd added enhancement New feature or request and removed bug Something isn't working question Further information is requested labels Jul 22, 2023
@shenanigansd shenanigansd changed the title Support the Simple API Add support for the Simple API Jul 22, 2023
@flying-sheep
Copy link

I need to work on looking at pulling data via the Simple API

Via the simple JSON API ideally, not the simple HTML API.

E.g. check out this code: https://github.com/flying-sheep/PKGBUILDs/blob/fd50db1cfb9296e5aa03525aa4e6dc1b82b4a00d/src/nvcheck/update/sources/pypi.py#L56-L84

It uses the simple JSON API (and has a commented-out block of code doing the same thing with the legacy JSON API. Yes it’s shorter and only needs one request, that’s why the simple JSON API is still called “simple”)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🔎Discovery
Development

No branches or pull requests

2 participants