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

Change the PUT and POST method in the tutorials #95

Closed
wants to merge 1 commit into from

Conversation

danivideda
Copy link

The convention of the POST method in HTTP should be for creating a new resource. And PUT method for updating specific resource

The convention of the POST method in HTTP should be for creating a new resource. And PUT method for updating specific resource
@netlify
Copy link

netlify bot commented Oct 25, 2022

👷 Deploy request for redis-stack-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 8e4d86d

@danivideda
Copy link
Author

Pull-request on the 'starter code' to update the Swagger UI spec: redis-developer/express-redis-om-workshop#2 (comment)

@K-Jo K-Jo requested a review from leibale December 1, 2022 17:06
Copy link
Contributor

@guyroyse guyroyse left a comment

Choose a reason for hiding this comment

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

See inline comments.

@@ -342,7 +342,7 @@ Now that we can read and write, let's implement the *REST* of the HTTP verbs. RE
Let's add the code to update a person using a POST route:
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to update the prose to match the code.

@@ -283,7 +283,7 @@ Now we can add our routes to create, read, update, and delete persons. Head back
We'll create a person first as you need to have persons in Redis before you can do any of the reading, writing, or removing of them. Add the PUT route below. This route will call `.createAndSave()` to create a `Person` from the request body and immediately save it to the Redis:
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to update the prose to match the code.

@leibale leibale self-requested a review December 1, 2022 17:21
@danivideda danivideda closed this Jun 13, 2024
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.

3 participants