GithubHelp home page GithubHelp logo

cde-platform-api's Introduction

Hi there ๐Ÿ‘‹๐Ÿฝ

I am a Software Craftsperson who is passionate about learning and community ๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป. I haven't done much contribution to open source but would love to.

Find me around the web:

cde-platform-api's People

Contributors

chekkan avatar

Watchers

 avatar  avatar

cde-platform-api's Issues

Restful Pagination & Filters

The recommendation is to support use of both the HTTP Range header plus querystring parameters, offset and limit.
Given support for both options, the query-string parameters should override the Range header.
http://www.restapitutorial.com/media/RESTful_Best_Practices-v1_1.pdf

Pagination

Range: items=25-49

or

?offset=0&limit=25

to return maximum of 25 items starting from 0.

The server response will include

Content-Range: 25-49/66

where 25-49 is the items returned and 66 is the number of items available in the server. It is also valid to replace the total items available (66 in this case) with an asterisk (โ€œ*โ€) if the number of items is unknown at response time, or if the calculation of that number is too expensive. In this case the response header would look like this:

Content-Range: items 40-65/* 

Filtering

GET http://www.example.com/users?filter="name::todd|city::denver|title::grand poobahโ€

Sorting

GET http://www.example.com/users?sort=last_name|first_name|-hire_date

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.