Closed DanielvandeVelde closed 6 years ago
Repeatedly trying to connect to your local ghost will not work
😂
So if I understand it correctly, in "real-life" you would not really use OPTIONS and PATCH. Is there a specific reason for that?
That's not entirely true! OPTIONS is often used by the browser to check if the server accepts the domain your website is using in CORS (https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request) and PATCH has a slight semantic difference from PUT. PUT is updating a whole entity, where PATCH can be used to update one or more properties in a single entity. It gets very technical very quickly, but it's an interesting subject to dive into :) https://stackoverflow.com/questions/28459418/rest-api-put-vs-patch-with-real-life-examples
My findings
I love how the ending of the last step is 'other than that, you've done very well'. So if I understand it correctly, in "real-life" you would not really use OPTIONS and PATCH. Is there a specific reason for that? Is there a better way or is it just something that you don't really use?