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

Add endpoint to add items #77

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Add endpoint to add items #77

merged 1 commit into from
Oct 15, 2024

Conversation

shem8
Copy link
Collaborator

@shem8 shem8 commented Oct 15, 2024

This pull request adds a new endpoint to the backend code that allows users to add items to the existing list of items. The new endpoint is implemented in the main.go file and accepts a JSON payload with the name of the item to be added. If the payload is valid, the item is added to the list of items and a JSON response with the newly added item is returned. If the payload is invalid, a JSON response with an error message is returned.

Copy link
Contributor

wilcoapp bot commented Oct 15, 2024

Got it, let me review the changes right away.

Copy link
Contributor

@wilcoapp wilcoapp bot left a comment

Choose a reason for hiding this comment

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

Nice! You've made the necessary changes. You can now merge the PR.

@shem8 shem8 merged commit 3b924ab into main Oct 15, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant