<?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[The Best Practice EndPoint API - Medium]]></title>
        <description><![CDATA[Here is a list of best practice endpoint that i have integrate so far. I would like to admire them from the bottom of my heart - Medium]]></description>
        <link>https://medium.com/the-best-practice-endpoint-api?source=rss----210af900870e---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>The Best Practice EndPoint API - Medium</title>
            <link>https://medium.com/the-best-practice-endpoint-api?source=rss----210af900870e---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 20:16:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/the-best-practice-endpoint-api" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Best practice api is created for admiring the best endpoint created by some backend guy.]]></title>
            <link>https://medium.com/the-best-practice-endpoint-api/the-best-practice-api-is-created-for-admiring-the-best-endpoint-created-by-some-backend-guy-a24df416402b?source=rss----210af900870e---4</link>
            <guid isPermaLink="false">https://medium.com/p/a24df416402b</guid>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[restful-api]]></category>
            <dc:creator><![CDATA[Nattapong Unaregul]]></dc:creator>
            <pubDate>Fri, 27 Mar 2020 08:10:51 GMT</pubDate>
            <atom:updated>2020-03-27T08:10:51.266Z</atom:updated>
            <content:encoded><![CDATA[<p>The Best practice api is created for admiring the best endpoint created by some backend guy. I appreciate their work hard and creativity towards the world</p><p>Below is example endpoint .<br><a href="https://thebestpracticeapi.azurewebsites.net/index.html"><strong>https://thebestpracticeapi.azurewebsites.net/index.html</strong></a></p><p>1 . <strong>[Get] User</strong></p><ul><li><strong>Functional Requirement :</strong> Frontend calls this api to render user profile and info. The below is what JSON response backend expose to FrontEnd</li></ul><pre>{<strong><br>  </strong>&quot;firstName&quot;:<strong> </strong>&quot;baboro&quot;,<strong><br>  </strong>&quot;lastName&quot;:<strong> </strong>&quot;lycan&quot;,<strong><br>  </strong>&quot;level&quot;:<strong> 0</strong>,<strong><br>  </strong>&quot;isLockOut&quot;:<strong> </strong>&quot;N&quot;<strong><br></strong>}</pre><p>FrontEnd : “What is the <em>Level</em> and is <em>isLockOut</em>”.</p><p>BackEnd : “To know the meaning, You should better call <em>/BestPractice/config</em>”</p><p>FrontEnd : “I try and get response look like this. Why don’t you expose direct message instead of asking another the meaning from additional endpoint”</p><pre>{<strong><br>  </strong>&quot;level&quot;:<strong> </strong>{<strong><br>    </strong>&quot;normal&quot;:<strong> 0</strong>,<strong><br>    </strong>&quot;owner&quot;:<strong> 1</strong>,<strong><br>    </strong>&quot;superAdmin&quot;:<strong> 2<br>  </strong>},<strong><br>  </strong>&quot;isLockOut&quot;:<strong> </strong>{<strong><br>    </strong>&quot;y&quot;:<strong> </strong>&quot;Yes&quot;,<strong><br>    </strong>&quot;n&quot;:<strong> </strong>&quot;No&quot;<strong><br>  </strong>}<strong><br></strong>}</pre><p>BackEnd : “Listen, Sending<strong> 0/1</strong> or <strong>y/n</strong> is to save the chunk of binary across the network so the client will cost a little on their internet service provider”</p><p>BackEnd : “Lets say this, <em>0</em> take 4 Bytes. <em>normal</em> take 48 Bytes. So we can save 44 Bytes at a time per request and <strong>this is the best practice</strong>”</p><p>BackEnd : “One last thing, You should map at the client side too.”</p><p>2. <strong>[POST]</strong> Creating Member and return the result</p><ul><li><strong>Functional Requirement : </strong>After creating. API should response what frontend created.</li></ul><p>Request</p><pre>{<br>   &quot;firstName&quot; : &quot;Chicken&quot;,<br>   &quot;lastName&quot; : &quot;DotA&quot;,<br>   &quot;picture&quot; : &quot;base64 jpeg,xxx&quot;,<br>   &quot;age&quot; : 36,<br>}</pre><p>Response</p><pre>[]</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a24df416402b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-best-practice-endpoint-api/the-best-practice-api-is-created-for-admiring-the-best-endpoint-created-by-some-backend-guy-a24df416402b">The Best practice api is created for admiring the best endpoint created by some backend guy.</a> was originally published in <a href="https://medium.com/the-best-practice-endpoint-api">The Best Practice EndPoint API</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>