Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
add link to kafka setup
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-masotti committed Jan 13, 2023
1 parent 3c38aa7 commit b8ba7b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
# vendor/

# Go workspace file
go.work
go.work
.idea/
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,9 @@ just re-echos back what it got.

An alternative would have been the much more complex [Postman ECHO API](https://www.postman.com/postman/workspace/published-postman-templates/documentation/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65), a REST API service
that allows you to test your REST clients and make sample API calls with any methods and
configuration. It just returns back the request as a response.
configuration. It just returns back the request as a response.


### Note

The Kafka local setup is not included in this project, it's just a copy of [this repo](https://github.com/conduktor/kafka-stack-docker-compose/blob/master/full-stack.yml)
1 change: 0 additions & 1 deletion api/test-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func (p *SampleMessage) ToJsonString() (string, error) {
func parseBodyAndAddProperty(message string) SampleMessage {
var payload SampleMessage
fmt.Println("Parsing message", message)
//if err := json.Unmarshal([]byte(message), &message);
if err := json.NewDecoder(strings.NewReader(message)).Decode(&payload); err != nil {
log.Fatal("Error unmarshalling message", err)
}
Expand Down

0 comments on commit b8ba7b6

Please sign in to comment.