Giter Club home page Giter Club logo

Comments (2)

pierrotsmnrd avatar pierrotsmnrd commented on May 28, 2024

Hi @costrouc

This issue is common to multiple features planned in the Conda Store UI / Gator project. I suggest we handle it early. I'll be happy to participate in the effort of solving it.

First, let's define the expected GET parameters. What do you think is the best ? Some suggestions, ideas and questions :

  • p and n for the page and number of items per page. Maybe page instead of p ?
  • Should the paging start at 0 or 1 ?
  • n=25 by default
  • should we allow n=all to return all the items - making the p parameter inactive ?

Also, I listed the API endpoints that need to be compatible with the pagination. Let's check them once done.

  • GET /api/v1/namespace/ :: list namespaces
  • GET /api/v1/environment/ :: list environments
  • GET /api/v1/build/ :: list builds
  • GET /api/v1/build/<build_id>/logs/ :: get build logs
  • GET /api/v1/channel/ :: list channels
  • GET /api/v1/package/ :: list packages

from conda-store.

pierrotsmnrd avatar pierrotsmnrd commented on May 28, 2024

Following today's meeting, here are the choices we made :

  • the API will look like : api/v1/package/?search=matplotlib&size=25&page=2
  • First page is page=1
  • Number of pages will be returned in the result
  • Size limited 100

The result should contain : status, data, and page

from conda-store.

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.