Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

final-project-engineering-77

migrate up

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

Structure JSON

Bisa liat di folder domain

Api yang tersedia

Users :

  • 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)

Auth :

  • Register = localhost:8080/register
  • Login = localhost:8080/login

Kursus :

  • 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)

Komentar :

  • 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)

Transaksi :

  • 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)