Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raihaninfo/golang-restapi
create rest-API using gorilla/mux with MySQL database.
https://github.com/raihaninfo/golang-restapi
golang mysql-database rest-api
Last synced: 26 days ago
JSON representation
create rest-API using gorilla/mux with MySQL database.
- Host: GitHub
- URL: https://github.com/raihaninfo/golang-restapi
- Owner: raihaninfo
- Created: 2021-07-26T10:53:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-26T13:59:03.000Z (over 2 years ago)
- Last Synced: 2024-10-15T01:03:30.889Z (about 1 month ago)
- Topics: golang, mysql-database, rest-api
- Language: Go
- Homepage:
- Size: 196 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang RestAPI using gorilla/mux
## Golang restAPI crud project with mySql database.
[![Facebook-Page][facebook-shield]][facebook-url] [![Instagram][instagram-shield]][instagram-url] [![LinkedIn][linkedin-shield]][linkedin-url][facebook-shield]: https://img.shields.io/badge/-Facebook-black.svg?style=flat-square&logo=facebook&color=555&logoColor=white
[facebook-url]: https://facebook.com/raihan.mahmudi.50
[instagram-shield]: https://img.shields.io/badge/-Instagram-black.svg?style=flat-square&logo=instagram&color=555&logoColor=white
[instagram-url]: https://www.instagram.com/raihan_info/
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://www.linkedin.com/in/raihaninfo/
![alt text](images/browser.png)
## GET All data
http://localhost:8080/employees
![alt text](images/alldata.png)## GET data by id
http://localhost:8080/employee/2
## POST new data
![alt text](images/post.png)
## UPDATE data
![alt text](images/put.png)
## DELETE data
![alt text](images/delete.png)
## Happy Coding 🇧🇩