An open API service indexing awesome lists of open source software.

https://github.com/ireoo/api-core

api core with golang
https://github.com/ireoo/api-core

Last synced: 9 months ago
JSON representation

api core with golang

Awesome Lists containing this project

README

          

# API Core with golang

> version: 1.0.0

## Golang 最新版本

```bash
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-go
```

## Releases

https://github.com/Ireoo/API-Core/releases

## 数据库操作

https://www.jb51.net/article/143208.htm

## 提交数据形式

```bash
curl \
-X POST \
http://localhost:2019/users/insert \
-H 'Content-Type: application/json' \
-H 'Authorization: xxxxxxxxxx' \
-d '{"where":{"id":1},"data":"2", "other":"3"}'
```

## 链接说明

```bash
http://localhost:2019/:table/:mode

// table -> 你要选择的表名
// mode -> 对该表的操作
// insert, update, findOne, findAll, remove, removeAll, updateAll, upsert
```