Json-server-py

Latest version: v0.1.11

Safety actively analyzes 682471 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 9

0.8.4

Added

* Like operator `GET /posts?title_like=json` (accepts RegExp)

0.8.3

Added

* CLI option `-q/--quiet`
* Nested route `POST /posts/1/comments`
* Not equal operator `GET /posts?id_ne=1`

0.8.2

Added

* CLI option `-S/--snapshots` to set a custom snapshots directory.

Fixed

* Fix plural resources: `DELETE` should return `404` if resource doesn't exist.

0.8.1

Fixed

* Fix plural resources: `PUT` should replace resource instead of updating properties.
* Fix singular resources: `POST`, `PUT`, `PATCH` should not convert resource properties.

0.8.0

Changed

* `jsonServer.defaults` is now a function and can take an object.
If you're using the project as a module, you need to update your code:

js
// Before
jsonServer.defaults
// After
jsonServer.defaults()
jsonServer.defaults({ static: '/some/path'})


* Automatically ignore unknown query parameters.

bash
Before
GET /posts?author=typicode&foo=bar []
After
GET /posts?author=typicode&foo=bar [{...}, {...}]


Added

* CLI option for setting a custom static files directory.

bash
json-server --static some/path

0.7.28

bash
Support range
GET /products?price_gte=50&price_lte=100

Page 8 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.