aboutcode-org / aboutcode-org/purldb

Reorganize API endpoints

未关闭
#207 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
67
派生
69
平均合并
8 天 8 小时
30 天内合并 PR
1

描述

We have a lot of API endpoints exposed that are not used and/or unnecessary. These endpoints should be removed:
```
approximate_directory_content_index
approximate_directory_structure_index
exact_file_index
exact_package_archive_index
cditems
on_demand_queue
```

The matching related endpoints, `approximate_directory_content_index`, `approximate_directory_structure_index`, `exact_file_index`, and `exact_package_archive_index`, are being removed because the current D2D pipeline only uses sha1 lookups on the `packages` and `resources` endpoints. We also plan to revamp matching such that it is all done on the purldb server.

We should reorganize the API endpoints into three categories:

1. lookup (query, get)
2. match (post)
3. "mining" (live retrieval of things)

We also need to rethink the actions on the `packages` endpoint. The `get_or_fetch_package` endpoint should be merged with the `get_package` endpoint. `get_package` should also be updated to create a package from a download url, in addition to purls.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。