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

Update response endpoint #20

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Update response endpoint #20

wants to merge 14 commits into from

Conversation

umidar
Copy link
Contributor

@umidar umidar commented Jan 13, 2023

Should be tested

models/events.go Outdated

type UpdateResponse struct {
ResponseID int `json:"response_id"`
Name string `json:"name"`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the UpdateResponse struct, the type string can be moved over to be in the same column as the other types. Just a formatting nit 😄

@umidar
Copy link
Contributor Author

umidar commented Jan 17, 2023

To test:
curl -XPATCH "http://localhost:3000/api/rsvp/3" -H "Content-Type: application/json" -d '{"rsvp":"Yes", "name":"Umida"}'

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

Successfully merging this pull request may close these issues.

3 participants