clearlydefined / clearlydefined/service

Get coordinates for all definitions by pattern ignores the rest segments

Open
#741 1 comment 0 reactions 0 assignees View on GitHub
docs help wanted
Dominant language
TypeScript
Stars
51
Forks
46
PR merge metrics
No merged PRs in 30d

Description

When requesting the coordinates for all definitions that match the given pattern in the specified part of the definition, the request seems to accept only the pattern param and ignores the other segments(type, provider, name), for instance:

`
requestURL: https://api.clearlydefined.io/definitions?pattern=1.9.%2A&type=npm&provider=npmjs&name=typescript

The result is: [
"nuget/nuget/-/Dsrv.Kernpruefung.Deuev-1.9/1.9.0.13",
"pypi/pypi/-/vdf/1.9",
"pypi/pypi/-/sqlany_django/1.9",
"pypi/pypi/-/tiddlywebplugins.utils/1.9",
"pypi/pypi/-/soupsieve/1.9",
"pypi/pypi/-/vcfnp/1.9",
"pypi/pypi/-/utt/1.9",
"pypi/pypi/-/zest.releaser/1.9",
"gem/rubygems/-/bbc_data_service/1.9",
"gem/rubygems/-/gettc/1.9",
"gem/rubygems/-/geti/1.9",
"gem/rubygems/-/tasks_generator/1.9",
"pypi/pypi/-/arrogant/1.9",
"pypi/pypi/-/acora/1.9",
"pypi/pypi/-/ftw.usermanagement/1.9",
"pypi/pypi/-/mamopublic/1.9",
"pypi/pypi/-/mylogger/1.9",
"pypi/pypi/-/fixalbumart/1.9",
"pypi/pypi/-/htmllaundry/1.9",
"pypi/pypi/-/Django/1.9",
"pypi/pypi/-/diax/1.9",
"pypi/pypi/-/edw.logger/1.9",
"pypi/pypi/-/oligotyping/1.9",
"pypi/pypi/-/pi3d/1.9",
"pypi/pypi/-/QDarkStyle/1.9",
"pypi/pypi/-/pymultinest/1.9",
"pypi/pypi/-/sentimentanalyser/1.9",
"pypi/pypi/-/patool/1.9",
"pypi/pypi/-/pdfcrowd/1.9",
"pypi/pypi/-/plone.outputfilters/1.9",
"pypi/pypi/-/rcghci/1.9",
"pypi/pypi/-/z3c.dependencychecker/1.9",
"pypi/pypi/-/tracvatar/1.9",
"pypi/pypi/-/streamAPI/1.9",
"pypi/pypi/-/spline/1.9",
"pypi/pypi/-/zxdnester/1.9",
"gem/rubygems/-/meme_generator/1.9",
"gem/rubygems/-/jgd/1.9",
"gem/rubygems/-/unswear/1.9",
"pypi/pypi/-/articledownloader/1.9",
"pypi/pypi/-/instantmusic/1.9",
"pypi/pypi/-/JCC/1.9",
"pypi/pypi/-/jaraco.text/1.9",
"pypi/pypi/-/mintapi/1.9",
"pypi/pypi/-/miniupnpc/1.9",
"pypi/pypi/-/bise.theme/1.9",
"pypi/pypi/-/csnews/1.9",
"pypi/pypi/-/decorated/1.9",
"pypi/pypi/-/cutadapt/1.9",
"pypi/pypi/-/FelPy/1.9"
]
`
The request returns the coordinates for all definitions that match the given pattern '1.9.*', but when omitting the pattern the request returns the coordinates for all definition that matches the given type, provider and name:

` requestURL: https://api.clearlydefined.io/definitions?type=npm&provider=npmjs&name=typescript

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.