Skip to content

ctopher7/golang-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prerequisites :

  • go v1.17

how to run:

  • berat server:
go mod vendor && go run main.go berat development

api for berat server:

  • get berat by id
curl --request GET \
  --url 'http://localhost:9000/berat?id=1'
  • get all berat
curl --request GET \
  --url 'http://localhost:9000/berat
  • insert berat
curl --request POST \
  --url http://localhost:9000/berat \
  --header 'Content-Type: application/json' \
  --data '{
	"tanggal":"2022-02-02T00:00:00Z",
	"max":40,
	"min":30
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages