https://github.com/sourcec0de/mysql-api
a very basic mysql proxy api
https://github.com/sourcec0de/mysql-api
Last synced: about 1 year ago
JSON representation
a very basic mysql proxy api
- Host: GitHub
- URL: https://github.com/sourcec0de/mysql-api
- Owner: sourcec0de
- Created: 2013-11-15T21:23:44.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-15T23:26:38.000Z (over 12 years ago)
- Last Synced: 2024-04-15T03:21:06.217Z (about 2 years ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MySQL-API
This is a very simple mysql api server.
There is one endpoint.
POST /exec
Send plain text as the request body.
This allows you to write complex SQL and send it as a post request.
Connect to your server by modifying `controllers/index.js`
- `host`
- `port`
- `user`
- `password`
- `database`
start the application with
`npm install`
`nodemon app.js` or `node app.js`
send `POST` to http://localhost:3000/exec
#### Example Curl
```shell
curl -XPOST http://localhost:3000/exec -d'
SELECT * FROM tags
'
```