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

API #13

Open
tartiflm opened this issue Jan 27, 2021 · 3 comments
Open

API #13

tartiflm opened this issue Jan 27, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@tartiflm
Copy link
Collaborator

Having a real API, instead of having to work with get parameters and having to parse the pages, would definitely be a better way to programatically explore the database.
It could even create new usages (Third party statistics processing, widgets, ... chatbot ? )

@tartiflm tartiflm added the enhancement New feature or request label Jan 27, 2021
@manulagadec manulagadec self-assigned this Feb 3, 2021
@manulagadec
Copy link

[base_url]/api/v1/resources/compilations?cid=[int] now returns the content of a compilation in JSON.

@manulagadec
Copy link

?compiled_kernel_version=[int] now returns compilations with a given kernel version.
?compiled=[true/false] now returns compilations that have compiled or not.
?limit=[int] limits the number of results (maximum set at 100 for now).
These arguments can be combined. Example : https://tuxmlweb.istic.univ-rennes1.fr/api/v1/resources/compilations?compiled_kernel_version="5.8"&limit=50&compiled=false

@manulagadec
Copy link

manulagadec commented Feb 11, 2021

TODO :

  • be able to select the arguments you want to display
  • add " or ' if not present when needed
  • support more arguments
  • links showing 127.0.0.1 instead of correct url

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
None yet
Development

No branches or pull requests

2 participants