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

Create new PURL services #246

Closed
3 tasks done
pombredanne opened this issue Dec 13, 2023 · 3 comments
Closed
3 tasks done

Create new PURL services #246

pombredanne opened this issue Dec 13, 2023 · 3 comments
Assignees

Comments

@pombredanne
Copy link
Contributor

pombredanne commented Dec 13, 2023

I would like to have various small API services all keyed by PURL, either as new endpoints or extending existing endpoints, with backing ScanCode.io pipelines as needed:

@pombredanne
Copy link
Contributor Author

Let's design a suite of rest API PURL-related endpoints that that are easy to understand:

    1. we have things that take a PURL as an input and return data:
    • we have "validate": at "https:///api/validate/" use PURL as an input
    • DWARF and Git use PURL as an input. A symbols endpoint would use this in the future too.
    1. we have things that take a some other data as an input and return PURLs:
    • Go use a Go import as an input and returns PURLs
    • we would need also something that exposes a url2purl taking a URL as input and returns PURLs
    • we could also have a GitHub, GitLab or other VCS URL input and return all the tags (e.g., we could return PURLs too)
  • For 1. we should group these services under some "from_purl" header as they take a PURL as an input

    • from_purl/validate
    • from_purl/dwarf
    • from_purl/urls
    • from_purl/versions
    • from_purl/git
  • For 2. we should group these services under some "to_purl" header as they return PURLs

    • to_purl/url
    • to_purl/go_import

@DennisClark
Copy link

@pombredanne @TG1999 I believe that this can be closed, since the 3 task issues are all done, with comments to describe how they can be tested.

@TG1999 TG1999 closed this as completed Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants