go run ./cmd/http
GET /v1/events
- List all eventsPOST /v1/events
- Create a new event
GET /v2/events
- List all events
GET /v3/shipments/{id}
- Get a shipment by IDPOST /v3/shipments
- Create a new shipmentPUT /v3/shipments/{id}
- Update a shipment by IDPOST /v3/shipments/{id}/items
- Add an item to a shipment
go run ./cmd/grpc
events.Events/List
- List all events
You can use grpcurl to interact with the gRPC server. Example:
grpcurl -plaintext localhost:8080 events.Events/List
- The
internal/event
is entity? - Where to define the application errors is better?
- How to split into domains?