- ID : GLNG-KS07-06
- Nama : Fahrul Zaman
- Kelas : GLNG-KS07
- Universitas : Universitas Bale Bandung
- Order API
- Create Order
- Get All Orders
- Get Detail Order by ID
- Update Order by ID
- Delete Order by ID
- Documentation with Swagger
- Clone this repository and go to the directory
- Create
.env
file and copy the content from.env.example
file - Run
go mod tidy
to install dependencies - Run
go run main.go
to start the server - Open
http://localhost:8080
to see the result - Open
http://localhost:8080/api/docs/index.html
to see the documentation
Buatlah Rest API (create, update, read, delete) dari service order. Buatlah 2 table items, dan orders dengan membuat table orders ke items menjadi relasi one to many.
- Create Order
- Get All Orders
- Get Detail Order by ID
- Update Order by ID
- Delete Order by ID
- Documentation with Swagger
back to top