GithubHelp home page GithubHelp logo

Comments (9)

SherifWaly avatar SherifWaly commented on May 25, 2024 1

@amihaiemil Ok, I would like to do it :D

from versioneye-api.

amihaiemil avatar amihaiemil commented on May 25, 2024 1

@SherifWaly Well, for Comments it is mandatory to specify the page number (Comments.fetch(int page)). I imagine it should be the same for Favorites. If they have no clue what page to mention, I think it is intuitive that "1" should work :D And if they specify a negative number or whatever, it will crash most likely, but that's none of our business -- we are not supposed to pollute our code with validations for all sorts of user scenarios, I think.

from versioneye-api.

amihaiemil avatar amihaiemil commented on May 25, 2024 1

@SherifWaly thanks :)

from versioneye-api.

0pdd avatar 0pdd commented on May 25, 2024

@amihaiemil please pay attention to this new issue.

from versioneye-api.

amihaiemil avatar amihaiemil commented on May 25, 2024

@SherifWaly Want to do this? I think it should be very similar to the way RtComments and RtComment are implemented. You can puzzle out the unit and integration testing :D

from versioneye-api.

amihaiemil avatar amihaiemil commented on May 25, 2024

@SherifWaly Here is how /favorites looks like (user datamd):

{
  "user": {
    "fullname": "datamd",
    "username": "datamd"
  },
  "favorites": [
    {
      "name": "doctrine/common",
      "language": "php",
      "prod_key": "doctrine/common",
      "version": "2.7.2",
      "prod_type": "composer"
    },
    {
      "name": "doctrine/doctrine-module",
      "language": "php",
      "prod_key": "doctrine/doctrine-module",
      "version": "2.0.0",
      "prod_type": "composer"
    },
    ...
  ],
  "paging": {
    "current_page": 1,
    "per_page": 30,
    "total_pages": 3,
    "total_entries": 70
  }
}

from versioneye-api.

amihaiemil avatar amihaiemil commented on May 25, 2024

And as I see, a project shows up as "favorite" if you follow it :)

from versioneye-api.

SherifWaly avatar SherifWaly commented on May 25, 2024

@amihaiemil What should happen if the page number isn't provided ?
Also for the paging part I see that there is the same puzzle for Comments.

from versioneye-api.

0pdd avatar 0pdd commented on May 25, 2024

The puzzle 11-51606277 has disappeared from the source code, that's why I closed this issue. //cc @amihaiemil

from versioneye-api.

Related Issues (20)

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.