question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API: support search by repo URL

See original GitHub issue

I see that /repositories/search takes a name but not a url. Is it possible to search by URL to locate a repository and its metadata?

For example:

  • I have https://charts.bitnami.com/bitnami as URL
  • I want to be able to /repositories/search with url=https://charts.bitnami.com/bitnami and see in result that the repo is bitnami
  • and then execute /packages/helm/bitnami/keycloak

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
brsolomon-deloittecommented, Feb 7, 2022

Nice, here’s what I put together (could also just pipe curl to jq):

$ curl -fsSL \
  -o helm-export.json \
  'https://artifacthub.io/api/v1/helm-exporter' \
  -H 'accept: application/json'
$ jq -M '.[] | select(.repository.url == "https://charts.bitnami.com/bitnami" and .name == "keycloak")' helm-export.json 
{
  "name": "keycloak",
  "version": "6.1.4",
  "repository": {
    "name": "bitnami",
    "url": "https://charts.bitnami.com/bitnami"
  }
}
1reaction
tegiozcommented, Feb 7, 2022

Maybe the endpoint below can be of help 🙂

https://artifacthub.io/docs/api/#/Integrations/getHelmExporterDump

It was created for a tool with a similar purpose actually. It’ll give you a short summary of all repositories, that includes the url for a fast local lookup.

Hope it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Search API - GitLab Docs
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
Read more >
Search API - Sonatype Help
The Search API facilitates searching for components and assets in addition to downloading a specific asset. Endpoints. Search Components. GET / ...
Read more >
GitHub Search API: An Introduction With Examples - Fusebit
Repository using repository_search_url; Topic using topic_search_url; User using user_search_url. Notice how each of the URLs follows a similar ...
Read more >
REST API - The Central Repository Documentation
These URLs allow you to access the search functionality of the Central Repository from any non-browser user agent. Note that the "wt" param-...
Read more >
Search | GitHub API - LFE Documentation
The Search API is optimized to help you find the specific item you're looking for (e.g., a specific user, a specific file in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found