migrate -path db/migration -database "sqlite3://db/pusat_ngoding.db?sslmode=disable" -verbose up migrate -path db/migration -database "sqlite3://db/pusat_ngoding.db?sslmode=disable" -verbose down
Bisa liat di folder domain
- Get All = localhost:8080/api/users
- Find by id = localhost:8080/api/users/id contoh : (localhost:8080/api/users/1)
- Get by Role = localhost:8080/api/users/role/role contoh : (localhost:8080/api/users/role/admin)
- Store = localhost:8080/api/users/
- Update = localhost:8080/api/users/id contoh : (localhost:8080/api/users/4)
- Update Role = localhost:8080/api/users/role/id contoh : (localhost:8080/api/users/5)
- Delete = localhost:8080/api/users/id contoh : (localhost:8080/api/users/3)
- Register = localhost:8080/register
- Login = localhost:8080/login
- Get All = localhost:8080/kursus
- Get by Id = localhost:8080/kursus/id contoh : (localhost:8080/kursus/2)
- Store = localhost:8080/kursus
- Update = localhost:8080/kursus/id contoh : (localhost:8080/kursus/2)
- Delete = localhost:8080/kursus/id contoh : (localhost:8080/kursus/2)
- Get All = localhost:8080/api/komentar
- Get by Id = localhost:8080/api/komentar/id contoh : (localhost:8080/api/komentar/1)
- Get by Id KURSUS = localhost:8080/komentar/id contoh : (localhost:8080/komentar/1)
- Store = localhost:8080/api/komentar
- Update = localhost:8080/api/komentar/id contoh : (localhost:8080/api/komentar/1)
- Delete = localhost:8080/api/komentar/id contoh : (localhost:8080/api/komentar/1)
- Get All = localhost:8080/api/transaksi
- Get by Id = localhost:8080/api/transaksi/id contoh : (localhost:8080/api/transaksi/1)
- Store = localhost:8080/api/transaksi
- Update = localhost:8080/api/transaksi/id contoh : (localhost:8080/api/transaksi/1)
- Delete = localhost:8080/api/transaksi/id contoh : (localhost:8080/api/transaksi/1)