
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
github.com/phogbinh/mysql-heroku-rest-api
The project uses Go, Heroku with ClearDB (MySQL) to implement a back-end API managing a simple database table named users
. It supports some basic RESTful APIs as described in the cURL API section below. The application URL can be found here.
Get all users' names and passwords from the database table users
.
An JSON object containing all users' names and passwords fetched from the database.
curl -X GET https://powerful-reaches-73385.herokuapp.com/users
Create an user to the database table users
.
An JSON object containing the requested user's name and password.
curl -X POST -d "{ \"name\": \"bill\", \"password\": \"1\" }" https://powerful-reaches-73385.herokuapp.com/users
Get an user from the database table users
.
An JSON object containing the user's name and password fetched from the database.
curl -X GET https://powerful-reaches-73385.herokuapp.com/users/bill
Update an user password in the database table users
.
An JSON object containing the requested user's name and password.
curl -X PUT -d "{ \"name\": \"bill\", \"password\": \"666\" }" https://powerful-reaches-73385.herokuapp.com/users/bill
Delete an user from the database table users
.
An JSON object containing the user's name given in the requested URL.
curl -X DELETE https://powerful-reaches-73385.herokuapp.com/users/bill
A documentation describing solutions for known errors.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.