KMA Score API written in Go
There are two ways you can use:
Copy a dump SQLite3 Score Database to folder. Leave it near main.go
Tip: You can dump it by using KMA Score Extractor
Create/Edit enviroment file
# .env
PORT = 8000 # Change port here
DB_PATH = ./kma_score.db # Path to DB file, default: ./data/kma_score.db
go run main.go
go build -o /kma-score-api
docker push arahiko/kma-score-api:latest
docker run -p 8080:8080 --name kma_score -v path/to/your/db_folder:/app/data -d arahiko/kma-score-api
docker ps
docker run kma_score
GET /scores/{studentCode}
| Parameter | Type | Description |
|---|---|---|
studentCode | string | Required |
GET /subjects
GET /avg-score/{studentCode}
| Parameter | Type | Description |
|---|---|---|
studentCode | string | Required |
POST /add-score/{studentCode}
| Parameter | Type | Description |
|---|---|---|
studentCode | string | Required |
Content type
Image
Digest
sha256:80717776e…
Size
230.2 MB
Last updated
over 3 years ago
docker pull arahiko/kma-score-api