api-server
api-server copied to clipboard
π‘ API server for api.cdnjs.com - The #1 free and open source CDN built to make life easier for developers.
After this commit https://github.com/cdnjs/api-server/commit/a66a3fb7e4308d23ab5ebaf7af3fb9c81baced47 (I'm not sure) `https://api.cdnjs.com/libraries/?search=boo` will return 404, but [many proj use this route to search](https://github.com/search?q=https%3A%2F%2Fapi.cdnjs.com%2Flibraries%2F&type=code) , I think new commit should be compatible with this route...
## Details ### Description The `filename` and `latest` (not sure if any other) fields return incorrect values via `/libraries` endpoint for some libraries, while correct data is returned via `/libraries/:library`...
### Description The version sorting seems to have no rhyme or reason. ### Steps to reproduce - Visit page: https://cdnjs.com/libraries/highlight.js - Open dropdown. ### Expected behavior The order would be...
Hello, is there any way to filter by file type? Like thisοΌ `https://api.cdnjs.com/libraries?fileType=css`
We are missing `mjs` [here](https://api.cdnjs.com/whitelist) Edit: Just noticed you already added it @MattIPv4. Still doesn't show up on the whitelist for me though, maybe needs to be deployed? ... maybe...
## Help request ### Problem scoped packages (e.g @angular/compiler) do not appear in search results and package info ### What I have tried https://api.cdnjs.com/libraries?search=@angular/compiler https://api.cdnjs.com/libraries?search=%40angular%2Fcompiler https://api.cdnjs.com/libraries/@angular/compiler?fields=name,description https://api.cdnjs.com/libraries/%40angular%2Fcompiler?fields=name,description am I missing...