Dummy REST API - JSON data
This is a Dummy JSON server that provides REST APIs.
Create by Code Đủ Thứ . Use for testing or practicing with frontend data
API list:
-
dummy.codeduthu.com/products 30x
GET
POST
PUT
PATCH
DELETE
OPTIONS
-
GET
POST
PUT
PATCH
DELETE
OPTIONS
info
Unlike other dummy servers you find, this server provides full HTTP methods and you can actually modify data. Meaning you can add, edit and delete and the real data will be lost .
info
Delete comfortably! New data is added every 10 minutes
Documentation
Routes
Based on the example db.json
, you'll get the following routes:
GET /products
Params
Conditions
-
==
-
lt
→<
-
lte
→<=
-
gt
→>
-
gte
→>=
-
ne
→!=
GET /products?views_gt=9000
Range
start
end
limit
GET /products?_start=10&_end=20
GET /products?_start=10&_limit=10
Paginate
-
page
-
per_page
(default = 10)GET /products?_page=1&_per_page=25
Sort
-
_sort=f1,f2
GET /products?_sort=id,-views
Nested and array fields
x.y.z...
x.y.z[i]...
GET /products?author.name=foo
GET /products?author.email=foo
GET /products?tags[0]=foo
Embed
GET /products?_embed=comments
GET /comments?_embed=post
Delete
DELETE/products/1
DELETE/products/1?_embed=comments