Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rezairfanwijaya/restfull-api-gin
https://github.com/rezairfanwijaya/restfull-api-gin
gin go gorm mysql
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rezairfanwijaya/restfull-api-gin
- Owner: rezairfanwijaya
- Created: 2022-05-15T07:45:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T08:56:24.000Z (over 2 years ago)
- Last Synced: 2024-11-05T10:41:28.021Z (about 2 months ago)
- Topics: gin, go, gorm, mysql
- Language: Go
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## RESTFULL API GIN MYSQL
Repository ini dibuat menggunakan [Golang](https://go.dev/), [Gin](https://gin-gonic.com/) dan [Gorm](https://gorm.io/). API ini akan melakukan CRUD terhadap data mahasiswa yang ada di database. Untuk mencoba API ini, silahkan untuk clone repository ini dengan cara#### 1. Clone Repository
```
git clone https://github.com/rezairfanwijaya/Restfull-API-Gin
```#### 2. Masuk Ke Direktori
```
cd Restfull-API-Gin
```#### 3. Membuat Database (Mysql)
```
CREATE DATABASE restfull_api_gin_go;
```### LIST API
#### 1. Register
```
POST http://localhost:8080/register
```#### 2. Login
```
POST http://localhost:8080/login
```#### 3. Home
```
GET http://localhost:8080
```#### 4. Show All Data
```
GET http://localhost:8080/mahasiswa
```#### 5. Input Data
```
POST http://localhost:8080/mahasiswa
```#### 6. Update Data
```
PUT http://localhost:8080/mahasiswa/nim
```#### 6. Delete Data
```
DELETE http://localhost:8080/mahasiswa/nim
```#### 7. Logout
```
GET http://localhost:8080/logout
```