Skip to content

Instantly share code, notes, and snippets.

@dmusicant-dk
Created June 13, 2023 18:40
Show Gist options
  • Save dmusicant-dk/c66aaa8419dd98f7b19ba7abd2d6fae8 to your computer and use it in GitHub Desktop.
Save dmusicant-dk/c66aaa8419dd98f7b19ba7abd2d6fae8 to your computer and use it in GitHub Desktop.
Method Action Return Objects Used From DI
/users
POST Writes a user record. Created status, message with user id
  • User
  • UsersProducer
/users/{userId:long}
PUT Updates a single user's details
Hint: Given you don't have an overloaded ProduceUpdate that takes both a user and userId, how can you make it produce this user but with the passed in id?
OK status, message the new user data
  • userId
  • User
  • UsersProducer
/users
DELETE Deletes a single user OK status, message saying you deleted that id
  • userId
  • UsersProducer
/users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment