Collection name, lowercase letters and underscores allowed
Request Body
Name
Type
Description
filter*
Object
xfilter
Object
Body.filter format conversion
- Header
- **x-total** `string(number)` Total
- Body
- **message** `string`
POST /db/x_orders/size HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json# ResponseHTTP/1.1204No ContentAlt-Svc:h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server:hertzX-Total:5000
POST /db/x_orders/size HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {"no": {"$in": ["4776797196163290","4916502451560966" ] } }}# ResponseHTTP/1.1204 No ContentAlt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server: hertzX-Total: 2
POST /db/x_orders/size HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {"_id": {"$in": ["64bdd1c042a8e3504975f04e" ] } },"xfilter": {"_id->$in":"oids" }}# ResponseHTTP/1.1204 No ContentAlt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server: hertzX-Total: 1
Find
POST/db/:collection/find
Path Parameters
Name
Type
Description
collection*
String
Collection name, lowercase letters and underscores allowed
Query Parameters
Name
Type
Description
sort
String[]
Sort rules <field>:<1|-1>
keys
String[]
Projection
Headers
Name
Type
Description
x-pagesize
Number
Paging size, default 100 customize must be between 1~1000
x-page
Number
Paging Index
Request Body
Name
Type
Description
filter*
Object
xfilter
Object
Body.filter format conversion
- Header
- **X-Total** `string(number)` Total
- Body `object[]` Data array
- Body
- **message** `string`
POST /db/x_orders/find HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {}}# ResponseHTTP/1.1200 OKAlt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server: hertzX-Total: 5000[ ... { "_id":"...", ... } 100 raw ... ]
POST /db/x_orders/find HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/jsonx-page:2x-pagesize:5# ResponseHTTP/1.1200OKAlt-Svc:h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server:hertzX-Total:5000[ ... { "_id":"...", ... } 5 raw ... ]
POST /db/x_orders/find HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {"no": {"$in": ["4556795377247677","4929152651590514" ] } }}
POST /db/x_departments/find HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {"parent":"62db8e2133c11192c28c61a1" },"xfilter": {"parent":"oid" }}
POST /db/x_orders/find?keys=name HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {}}
POST /db/x_orders/find?sort=no:1 HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {}}
FindOne
POST/db/:collection/find_one
Path Parameters
Name
Type
Description
collection*
String
Collection name, lowercase letters and underscores allowed
Query Parameters
Name
Type
Description
keys
String[]
Projection
Request Body
Name
Type
Description
filter*
Object
xfilter
Object
Body.filter format conversion
- Body `object`
- Body
- **message** `string`
POST /db/x_orders/find_one HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {"no":"3528731257638202" }}# ResponseHTTP/1.1200 OKAlt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server: hertz{"_id":"64bdd1c042a8e3504975f04e","account":"MfaoSxk","address":"Et velit veniam sed eos et.","create_time":"1994-05-02T13:34:34Z","customer":"King Jules Koelpin","description":"Quidem est est officiis velit est. Provident qui vero placeat eaque mollitia.","email":"jRUnefN@YLXvGfp.info","name":"Prof. Finn Wintheiser","no":"3528731257638202","phone":"104-215-9683","price":5956907.02,"update_time":"1994-05-03T13:34:34Z","valid":["2170-06-15T22:39:42.803Z","2265-03-22T21:48:37.854Z"]}
POST /db/x_departments/find_one HTTP/1.1Host:api-x.kainonly.com:8443Content-Type:application/json{"filter": {"parent":"62db8e2133c11192c28c61a1" },"xfilter": {"parent":"oid" }}# ResponseHTTP/1.1200 OKAlt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server: hertz{"_id":"62db95ec33c11192c28c61a7","name":"客服 B 组","parent":"62db8e2133c11192c28c61a1","create_time":"2022-07-23T14:32:12.502+08:00","update_time":"2022-07-23T14:32:12.502+08:00"}
Collection name, lowercase letters and underscores allowed
id*
String
ID, must be MongoId
Query Parameters
Name
Type
Description
keys
String[]
Projection
- Body `object`
- Body
- **message** `string`
GET /db/x_orders/64b14c68b26a163ca034ace7 HTTP/1.1Host:api-x.kainonly.com:8443# ResponseHTTP/1.1200OKAlt-Svc:h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server:hertz{"create_time":"2022-03-08T17:12:28.607+08:00","_id":"64b14c68b26a163ca034ace7","no":"CY12008750579FE7390A801K60S7","name":"Fantastic Plastic Towels","price":980.94,"valid":["2021-09-04T00:23:26.91+08:00","2022-06-12T09:28:07.644+08:00"],"address":"3358 Lang Common","update_time":"2022-03-08T17:12:28.607+08:00","description":"Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support","account":"94213614","customer":"Faye Hermann","email":"Sven20@hotmail.com","phone":"172828438"}
GET /db/x_orders/64b14c68b26a163ca034ace7?keys=no HTTP/1.1Host:api-x.kainonly.com:8443# ResponseHTTP/1.1200OKAlt-Svc:h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000Server:hertz{"_id":"64b14c68b26a163ca034ace7","no":"CY12008750579FE7390A801K60S7"}
Update
POST/db/:collection/update
Path Parameters
Name
Type
Description
collection*
String
Collection name, lowercase letters and underscores allowed