Skip to content

hyeonjae/go-eventsource

Repository files navigation

go-eventsource

command request

query request

run

$ go run cmd/server/main.go

client 생성

$ curl -XPOST localhost:8080/clients \
  -H 'Content-Type: application/json' \
  -d '{"name":"steve", "email":"[email protected]"}'
{"id":"dc5dba8b-a650-4cb0-8ee6-ae00536108a1","name":"steve","email":"[email protected]"}

client 이름 수정

$ curl -XPUT localhost:8080/clients/dc5dba8b-a650-4cb0-8ee6-ae00536108a1 \
  -H 'Content-Type: application/json' \
  -d '{"name":"Steve", "email":"[email protected]"}'
{"id":"dc5dba8b-a650-4cb0-8ee6-ae00536108a1","name":"Steve","email":"[email protected]"}

client 조회

$ curl -XGET localhost:8080/clients/dc5dba8b-a650-4cb0-8ee6-ae00536108a1
{"id":"dc5dba8b-a650-4cb0-8ee6-ae00536108a1","name":"Steve","email":"[email protected]"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published