Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 480 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 480 Bytes

Simple Golang REST API

Install

  1. Clone
  2. Copy and rename .env.sample to .env. Set the database and port.
  3. Import the tables.sql to database to create and insert data to table.
  4. Run go run main.go

Routes

Endpoint Method Param Desc
/student GET Mengambil daftar siswa
/student POST name, grade Menambahkan siswa

Test

To run unit test along with coverage, run go test -v -cover ./...