Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.15 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.15 KB

lb-teams

This is a playground project for exploring the use of Liftbridge as an event store.

The goal of this project is to implement a simple domain of Users and Teams, where users can be invited to teams, accept invites to teams, leave teams, and remove other team members (assuming they're the team owner).

API

Commands

  • Send Team Formation Invite: curl -XPOST localhost:8080/SendTeamFormationInvite -d '{"inviterUserId":"alice","inviteeUserId":"bob"}'
  • Decline Team Formation Invite: curl -XPOST localhost:8080/DeclineTeamFormationInvite -d '{"inviteId":"ee343dc8-4349-42e3-aa80-06748252fd13"}'
  • Cancel Team Formation Invite: curl -XPOST localhost:8080/CancelTeamFormationInvite -d '{"inviteId":"abc123"}'
  • Accept Team Formation Invite: curl -XPOST localhost:8080/AcceptTeamFormationInvite -d '{"inviteId":"abc123"}'

Queries

  • Get User Inbox: curl localhost:8080/Inbox?userid=bob

Model

This project is being designed using Event Modelling