Git Product home page Git Product logo

api's Introduction

api's People

Contributors

zenorocha avatar keppelen avatar

Stargazers

John Marczak avatar jjcastano avatar Andrii Trybynenko avatar Manaia Junior avatar Erik Isaksen avatar Gunnar Halen avatar

Watchers

Djalma Araújo de Andrade avatar  avatar Erik Isaksen avatar Bernard De Luna avatar James Cloos avatar jjcastano avatar

api's Issues

Filter by dependencies

Our most requested feature is to filter results by dependency name and version. For example: search for carousel repositories that depends on polymer > 1.0.0.

In order to do that, we first had to fetch dependencies from bower and npm. Fortunately, we've just pushed that and now a result looks like this:

{
  "id": 12217367,
  "name": "twitter-button",
  "description": "Web Component wrapper for Twitter's button using Polymer",
  "owner": {
    "id": 12434272,
    "login": "social-elements"
  },
  "created_at": "2013-08-19T13:29:28Z",
  "pushed_at": "2015-06-05T22:18:43Z",
  "forks_count": 16,
  "stargazers_count": 34,
  "default_branch": "master",
  "bower": {
    "name": "twitter-button",
    "keywords": [
      "polymer",
      "web-components"
    ],
    "dependencies": {
      "polymer": "Polymer/polymer#^1.0.0"
    }
  }
}

It's time to take the next step and develop this API. My idea is to have something like this:

/search/repos?q=carousel&dependency=polymer:^1.0.0
  1. We would need to get the dependency value from request and split this string based on : operator.
  2. Using the first part (polymer) we would have to filter the dependencies property
  3. And with the second part (^1.0.0) we would have identify which versions satisfies or not (semver-regex could help us on that).

I'm not quite sure how to accomplish those steps... maybe Regexp Query? I don't know, any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.