<?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 Tejaswi Garimella on Medium]]></title>
        <description><![CDATA[Stories by Tejaswi Garimella on Medium]]></description>
        <link>https://medium.com/@teju.garimella?source=rss-cfbb7628a265------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jcDmDmbb_S4j91u4</url>
            <title>Stories by Tejaswi Garimella on Medium</title>
            <link>https://medium.com/@teju.garimella?source=rss-cfbb7628a265------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:40:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@teju.garimella/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[MuleSoft — DataWeave — 2]]></title>
            <link>https://medium.com/@teju.garimella/mulesoft-dataweave-2-91ad4ff12fe1?source=rss-cfbb7628a265------2</link>
            <guid isPermaLink="false">https://medium.com/p/91ad4ff12fe1</guid>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[dataweave]]></category>
            <dc:creator><![CDATA[Tejaswi Garimella]]></dc:creator>
            <pubDate>Wed, 24 May 2023 07:13:32 GMT</pubDate>
            <atom:updated>2023-05-24T07:34:30.801Z</atom:updated>
            <content:encoded><![CDATA[<h3>MuleSoft — DataWeave — 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*_ijLSWCw8F1ngzrD1Dlv9Q.png" /></figure><p>If you have not read part 1 of this series, please do visit and read <a href="https://medium.com/@teju.garimella/mulesoft-dataweave-1-4c0abb989452">DataWeave Part 1.</a></p><p>Now that we are all familiarized with the word DataWeave let’s use it in short form as DW from now on.</p><p>So, we learnt what is DW already in part 1, now let’s take another step in DW learning by understanding the structure of DW.</p><h3>What is the structure of DW?</h3><p>Like any other coding language, DW also has some structure to be followed. DW code is commonly called DW Script.</p><blockquote>DW Script is made up of two parts namely header and body. The header and the body are separated using 3 dashes as shown in the below image. Part above the 3 dashes is the header and part below the 3 dashes is the body.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BborpYBi8nNi_bOPz8yF5w.png" /><figcaption>Sample DW script</figcaption></figure><p>The above image is taken from dataweave playground. Before we continue to understand what header and body are, let me first explain the different sections in the above image.</p><ol><li>Left hand section is the input section where we need to provide the input payload for our script to work on. Input is not mandatory, DW scripts can even be built without inputs, you will understand when we go further in DW concepts.</li><li>Middle section is the script section where you will be writing your DW scripts by following the structure</li><li>Right hand section is the output section where you will be seeing the output payload i.e., the outcome of your DW script written in the middle section.</li></ol><p><strong><em>Note</em></strong>: If you are listening to the term payload for the first time, payload is nothing but your data. When we say input payload it&#39;s nothing but your input data and the same with output payload.</p><p>Now let’s continue to understand what header and body are.</p><h4><strong><em>Header</em></strong>:</h4><p>The header starts with %dw 2.0 which is a language directive. This indicated dw(dataweave) 2.0(version). <strong>This %dw 2.0 is not mandatory</strong>. Your script works even without its presence as shown below. Personally, I would like to put this directive as this makes a new person understand what language and version we are using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxq_vOXCcpHjHCl4Mm9Kqw.png" /><figcaption>output application/json</figcaption></figure><p>If you observe there is another line above 3 dashes in the headers part, we have <strong>output application/json</strong>. What does this mean? Through this line, we are informing DW that we need an output of type Json. We can change that to <strong>output application/xml </strong>to get an output of type xml like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iulk--36btMCYLjU33sivA.png" /><figcaption>output application/xml</figcaption></figure><p>If you observe the above image, now the output is of xml type.</p><h3><strong>output application/json</strong></h3><p>Now let’s divide thisline into two parts again, output and application/json. First part output, we already know the name itself speaks about it. Second part application/json, this is commonly referred to MIME type.</p><blockquote><strong>What is MIME type??</strong></blockquote><blockquote>Full form — Multipurpose Internet Mail Extensions. A MIME type is a label used to identify a type of data. It is used so software can know how to handle the data. It serves the same purpose on the Internet that file extensions do on Microsoft Windows.</blockquote><p>Below are the MuleSoft supported MIME types or data formats in DW.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*RIwH_FJcp6SV00DQDNhMrg.png" /><figcaption>MuleSoft supported Data Formats</figcaption></figure><p>So, let’s see what happens if we remove this output MIME type completely. If you observe the output section in the below image, we receive the output in text format, mentioning the type of payload. Now, you know when to include and when to exclude the output directive</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sQhQEMUtcGYxSpv2pfOFMA.png" /><figcaption>Excluding output directive</figcaption></figure><p>Like in any other languages, DW even supports variables, functions, importing modules. All these need to be declared in the header section itself.</p><p>If you are new to the software world and not aware of variables, and functions, don’t panic, we will talk about them in detail in the upcoming parts.</p><h3><strong><em>Body</em></strong>:</h3><p>The section below three dashes is the body and is very simple to understand, this part just has the actual script or expressions which will result in the output payload. We write down all our transformations, mappings, and business logic in this section. Here, we make use of the variables, functions which are declared in the header section</p><p>Below is the sample DW script. DataWeave learning is fun, lets play with it in the upcoming blogs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ISkHqsGTb62_yG1ZGWtYjQ.png" /><figcaption>Sample DW Script</figcaption></figure><p>Thank you for your time in reading. Stay tuned for the next part.</p><p>Stay focused. Stay safe.</p><blockquote>“Consistency shows you success”</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91ad4ff12fe1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MuleSoft — DataWeave — 1]]></title>
            <link>https://medium.com/@teju.garimella/mulesoft-dataweave-1-4c0abb989452?source=rss-cfbb7628a265------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c0abb989452</guid>
            <category><![CDATA[dataweave]]></category>
            <category><![CDATA[mulesoft]]></category>
            <dc:creator><![CDATA[Tejaswi Garimella]]></dc:creator>
            <pubDate>Wed, 17 May 2023 06:53:01 GMT</pubDate>
            <atom:updated>2023-05-17T06:53:01.447Z</atom:updated>
            <content:encoded><![CDATA[<h3>MuleSoft — DataWeave — 1</h3><p>I am starting this new series for DataWeave. This will help both beginners and experienced to learn/refer to the DataWeave concepts. I hope this helps everyone out there who is looking for easy understanding of DataWeave.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*9tsr-8QNSef_KTIn.png" /></figure><h3>What is DataWeave?</h3><blockquote><strong>By now, you should know that MuleSoft is an integration tool which is used to create APIs to pick data from one system and push into another system. Here when dealing with data between two systems, data is not always compatible with target/destination systems. So, to make our outgoing data compatible with the target system we will need to make some transformations to the data. And how do we do that transformation? MuleSoft has provided DataWeave which is its primary language for data transformation, as well as the expression language used to configure components and connectors.</strong></blockquote><h3>Is DataWeave tough to learn? Is it beginner friendly?</h3><p>Yes, DataWeave is very easy to learn and it doesn&#39;t need any previous experience. A beginner can easily start learning and become an expert.</p><p>So where do I learn DataWeave? We have multiple sources provided by MuleSoft itself for easy learning. You can refer to MuleSoft’s official documentation about DataWeave and learn from here — <a href="https://docs.mulesoft.com/dataweave/2.4/">DataWeave Language | MuleSoft Documentation</a></p><p>For beginners I would suggest the tutorial provided by MuleSoft to start their DataWeave journey. You find the link to tutorial here — <a href="https://dataweave.mulesoft.com/learn/tutorial">DataWeave Interactive Learning Environment | MuleSoft Developers</a></p><p>This is the another MuleSoft website which is specific for DataWeave — <a href="https://dataweave.mulesoft.com/">DataWeave (mulesoft.com)</a></p><p>The other possible option to learn DataWeave very easily or in an understanding way is to stay tuned to this DataWeave series from me :)</p><h3>Where can I practice the DataWeave? Should I install something?</h3><p>No, you need not install anything on your system to practice DataWeave. Here you go with a DataWeave playground which helps you to play with your code and explore further — <a href="https://dataweave.mulesoft.com/learn/playground">DataWeave Interactive Learning Environment | MuleSoft Developers</a></p><p>Once you are ready with the practice, you can take your code from this playground and use it in your API.</p><p>Hope this gave you a basic understanding of what is DataWeave. Stay tuned for the upcoming posts from me to learn DataWeave from basics to advanced.</p><p>Thank you. Stay safe.</p><blockquote><em>“Enjoy your present moment before it becomes your past”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c0abb989452" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is an API?]]></title>
            <link>https://medium.com/@teju.garimella/what-is-an-api-1296246ae8d0?source=rss-cfbb7628a265------2</link>
            <guid isPermaLink="false">https://medium.com/p/1296246ae8d0</guid>
            <dc:creator><![CDATA[Tejaswi Garimella]]></dc:creator>
            <pubDate>Wed, 19 Apr 2023 09:09:20 GMT</pubDate>
            <atom:updated>2023-04-19T09:09:20.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YRS6TtSZkWDibkPh" /></figure><p>Generally, we hear everywhere about an API in the software industry. But beginners, you should have this doubt about what actually an API is and why are we using this, and where to use this. Right!! So, this is for all those who wanted to learn what is an API in easy words with a common example.</p><h3><strong>API in technical terms:</strong></h3><blockquote><strong>Application Programming Interface which allows two applications to interact with each other.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*joVjVFKGhEQ244GN.png" /></figure><p>A client calls your API with an input request and your API calls the server with the client-sent request details. Your API retrieves all the data from the server and brings the response back to your client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iR3Wna2tOX1RJXnR.png" /></figure><p>In the above image, the client is sending a request to API and API is querying the database. Here database is the server. The data returned by the database is sent to the client as a response to your client through your API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*RWejzt4f8BAP0uAW.png" /></figure><h3>API in common terms:</h3><p>Let’s keep these server, client, request, response, and database kinds of technical terms aside now and try to understand what an API is through a common restaurant example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZQ11egjrwsSAPFfe.png" /></figure><p>You go to a hotel, look into the menu card, and call the waiter. The waiter asks you for the order and you tell him what you want. The waiter takes your order and goes to the kitchen. He talks to the chef in the kitchen and makes the chef cook your dish. Once the dish is ready, the waiter will bring your dish to your table, and you will enjoy it… yummy!! right?</p><p>So, here You are the client, the waiter is the API, and the kitchen/Chef is the server. The order you gave to the waiter is the request and the dish waiter brought from the kitchen to your table is the response.</p><blockquote>There you go, <strong><em>API takes the request from the client to the server and brings back the response from the server to the client.</em></strong></blockquote><p>Hope now you are able to relate the technical terms properly and hope you understand how an API functions.</p><p>Thanks for your time in reading this. Hope it helped.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1296246ae8d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>