Concevoir un ORM qui permet de communiquer avec le service externe https://jsonplaceholder.typicode.com
Cet ORM sera réalisé en TypeScript et typé au maximum.
| # Backbone Pagination with header | |
| # | |
| # Get remote number of resources, and add it in the `remoteCount` attribute of the collection | |
| # this attribute can then be use to create proper pagination. | |
| # | |
| # Expected format is an header `Content-Range` with following format: | |
| # `resource 40-49/234` (HTTP 1.1 format) | |
| # * `resource` is the name of the resource (can be `resource`, not important) | |
| # * `40-49` is the range of returned items (item 40 to item 49) | |
| # * `234` is the total number of items (this is the important part) |
| const app = require('express')() | |
| const db = { | |
| users: [ | |
| { id: 0, firstname: 'Jean', lastname: 'Bond' }, | |
| { id: 1, firstname: 'Emilie', lastname: 'Lol' }, | |
| ] | |
| } | |
| class HttpError extends Error { |
Concevoir un ORM qui permet de communiquer avec le service externe https://jsonplaceholder.typicode.com
Cet ORM sera réalisé en TypeScript et typé au maximum.