Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab 11 - Puppy Notification #651

Open
willshen8 opened this issue Sep 13, 2019 · 0 comments
Open

Lab 11 - Puppy Notification #651

willshen8 opened this issue Sep 13, 2019 · 0 comments

Comments

@willshen8
Copy link
Collaborator

Create cmd/lostpuppy-service/main.go running single endpoint:
POST /api/lostpuppy/ Payload: { id: PUPPY_ID }
This stubbed endpoint returns with 2 second delay:

HTTP status 201 for even IDs
HTTP status 500 for odd IDs

Update Puppy Delete method to notify lostpuppy-service in a goroutine and log response code asynchronously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant