<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by MANIL KAPOOR on Medium]]></title>
        <description><![CDATA[Stories by MANIL KAPOOR on Medium]]></description>
        <link>https://medium.com/@kapoor.manil?source=rss-37baaa3a6b89------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by MANIL KAPOOR on Medium</title>
            <link>https://medium.com/@kapoor.manil?source=rss-37baaa3a6b89------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:38:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kapoor.manil/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Uncommon HTTP Methods /API Calls]]></title>
            <link>https://medium.com/@kapoor.manil/uncommon-http-methods-api-calls-39c77da86bc8?source=rss-37baaa3a6b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/39c77da86bc8</guid>
            <category><![CDATA[uncommon-http-methods]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[MANIL KAPOOR]]></dc:creator>
            <pubDate>Tue, 05 Mar 2019 05:35:08 GMT</pubDate>
            <atom:updated>2019-03-05T05:35:08.340Z</atom:updated>
            <content:encoded><![CDATA[<p>This article covers a few uncommon or API calls that are not used commonly to develop microservices.</p><p>i) PATCH: It is used to perform partial updates to resources on the server.</p><p>Example: Consider below user.json with name and email of the user.</p><p>{</p><p>name: XYZ,</p><p>email: xyz@gmail.com</p><p>}</p><p>If I need to update the email part of the above user. I will use a PATCH command that will only update the email. Now, the question arises why not PUT. “ You should use the PUT method only when you would like to replace the resource in its entirety”. Partial PUT is not restful.</p><p>ii) LINK / UNLINK</p><p><a href="http://www.chmod777self.com/2012/01/thinking-out-loud-linkunlink-http.html">Thinking out loud: LINK/UNLINK HTTP Methods?</a></p><p>iii) PURGE</p><p>A <em>purge</em> is what happens when you pick out an object from the cache and discard it along with its variants. Usually, a purge is invoked through HTTP with the method PURGE.</p><p>Example: Say you are on the comments section of the website. Say all comments are stored in a comments object represented as key-value pair :</p><p>[</p><p>{</p><p>commentId : 1,</p><p>commentText : “this is new comment”<br>},</p><p>{</p><p>commentId : 2,</p><p>commentText : “this is the second comment”<br>},</p><p>]</p><p>Above object is cached in the memory of the website because when different user logs in the comments sections are loaded directly from the cache hence website loads instantaneously rather than fetching content from the server.</p><p>Now, when a comment is added by a different user on the website the above object needs to be updated Hence, comments object holding data on the comments needs to be updated on the website cache. So, to clear the cache PURGE method is used and cache gets updated using the new value from the server.</p><p>iv) PROPFIND:</p><p>It used to retrieve properties, stored as XML, from a web resource. It is also overloaded to allow one to retrieve the collection structure (a.k.a. directory hierarchy) of a remote system.</p><p>Example: PROPFIND</p><h3>Request</h3><pre>PROPFIND /public/docs/myFile.doc HTTP/1.1<br>Content-Type: text/xml<br>Content-Length: XXX<br>Depth: 0<br>Translate: f<br>...</pre><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;a:propfind xmlns:a=&quot;DAV:&quot;&gt;<br>&lt;a:prop&gt;&lt;a:getcontenttype/&gt;&lt;/a:prop&gt;<br>&lt;a:prop&gt;&lt;a:getcontentlength/&gt;&lt;/a:prop&gt;<br>&lt;/a:propfind&gt;</pre><h3>Response</h3><pre>HTTP/1.1 207 Multi-Status<br>Content-Type: text/xml<br>Content-Length: 310</pre><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;a:multistatus<br>  xmlns:b=&quot;urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/&quot;<br>  xmlns:a=&quot;DAV:&quot;&gt;<br> &lt;a:response&gt;<br>   &lt;a:href&gt;http://server/public/test2/item1.txt&lt;/a:href&gt;<br>   &lt;a:propstat&gt;<br>    &lt;a:status&gt;HTTP/1.1 200 OK&lt;/a:status&gt;<br>       &lt;a:prop&gt;<br>        &lt;a:getcontenttype&gt;text/plain&lt;/a:getcontenttype&gt;<br>        &lt;a:getcontentlength b:dt=&quot;int&quot;&gt;33&lt;/a:getcontentlength&gt;<br>       &lt;/a:prop&gt;<br>   &lt;/a:propstat&gt;<br> &lt;/a:response&gt;<br>&lt;/a:multistatus&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39c77da86bc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>