clearlydefined / clearlydefined/service

Create a 'related definitions' API

Open
#402 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
51
Forks
46
PR merge metrics
No merged PRs in 30d

Description

I'm thinking similar to how we do
https://api.clearlydefined.io/suggestions/npm/npmjs/-/glob/7.1.3

We would have another endpoint like
https://api.clearlydefined.io/related/npm/npmjs/-/glob/7.1.3

And this would have an algorithm that returned a list of coordinates.

We can start by returning other revisions of the same coordinates that have the same data missing

For example:

If `npm/npmjs/-/glob/7.1.3` is missing a declared license, return other `npm/npmjs/-/glob/` that are also missing a declared license

If `npm/npmjs/-/glob/7.1.3` is missing a source location, return other `npm/npmjs/-/glob/` that are also missing a source location

```
GET https://api.clearlydefined.io/related/npm/npmjs/-/glob/7.1.3

REPSONSE [ "npm/npmjs/-/glob/7.1.2", "npm/npmjs/-/glob/7.1.0", ... ]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.