DEV Community

Hunter Pollard
Hunter Pollard

Posted on

Patch me up.

Let's talk about Lilo & stitch, we'll get to code later. First of all did you know lilo is Hawaiian for lost, so the title of most peoples beloved childhood show means lost and put together.

There are 5 main methods to use when dealing with javascripts fetch API's GET, POST, PATCH, PUT & DELETE. But today we are just focusing on the PATCH method. But first what even is a fetch API, since you asked I guess I can give you a brief rundown. Well .fetch() is a JS method that allows us to retrieve data from servers and reconfigure it for our own uses. API's on the other hand are Application Programming Interfaces.

The different method like GET and POST are ways to retrieve and send data to the server. PATCH is not so different it modifies an existing resource not unlike PUT. But PATCH can send back specific changes back to the resource. To go deeper it shares a set of instructions on how the resource should be changed.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay