trustification / trustify

Apache License 2.0
8 stars 15 forks source link

What are the filters we support for Packages? #425

Closed carlosthe19916 closed 3 days ago

carlosthe19916 commented 2 weeks ago

If get hit GET /api/v1/package?q=

image

{
  "items": [
      {
          "uuid": "f7d25fe0-2f5c-5feb-854f-762b7ecd6527",
          "purl": "pkg://npm/highlight-words-core@1.2.0",
          "base": {
              "uuid": "41de79a7-d36e-57e2-83ab-984875221b35",
              "purl": "pkg://npm/highlight-words-core"
          },
          "version": {
              "uuid": "f7d25fe0-2f5c-5feb-854f-762b7ecd6527",
              "purl": "pkg://npm/highlight-words-core@1.2.0",
              "version": "1.2.0"
          }
      }
  ],
  "total": 10263
}
jcrossley3 commented 2 weeks ago

Are you asking how to construct the value of q or which checkboxes should appear in the UI?

carlosthe19916 commented 2 weeks ago

I am asking how to construct the q.

jcrossley3 commented 2 weeks ago

I think all the queries will use the LIKE operator, e.g. q=purl~arch=amd, q=purl~pkg:rpm. (shown un-encoded for clarity)

jcrossley3 commented 3 days ago

Is this issue still relevant? If so, can you give me steps to reproduce? Thanks!

carlosthe19916 commented 3 days ago

Is this issue still relevant? If so, can you give me steps to reproduce? Thanks!

Let's close this issue. Yesterday it was agreeded that even the endpoint /api/v1/package will be gone. If a more concrete issue appears I can create a new issue or reopen this one