方法 | 地址 | 操作 | post body示例 | 备注 |
---|---|---|---|---|
帮助 | http://localhost:8010/ | GET | ||
查询 | http://localhost:8010/get | POST | {"Host":"","DBName":"spider","Business":"insocial","Data":{"zans":{"$gt":1}},"Limit":1,"Skip":1,"Select":{"id":1,"inid":1,"name":1}} | |
统计 | http://localhost:8010/count | POST | {"Host":"","Business":"insocial","Data":{"zans":{"$gt":1}} | |
判断是否存在 | http://localhost:8010/exists | POST | {"Business":"insocial","Data":{"id":"123456"},"Key":"id"} | 需指定主键key,否则默认为key为id |
新增 | http://localhost:8010/add | POST | {"Business":"insocial","Data":{"id":"123456","name":"123123"},"Key":"id"} | Data值可以为map或者[]map |
更新 | http://localhost:8010/update | POST | {"Business":"insocial","Data":{"id":"123456","name":"123123"},"Key":"id"} | 需指定主键key,否则默认为key为id |
forked from qianyaozu/go-mongo-server
-
Notifications
You must be signed in to change notification settings - Fork 0
sjqzhang/go-mongo-server
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
a http server operate the mongodb write by golang
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Go 100.0%