<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Drupal%2FC4%2FRESTful-API-with-a-REST-Client%2FEnglish-timed</id>
		<title>Drupal/C4/RESTful-API-with-a-REST-Client/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Drupal%2FC4%2FRESTful-API-with-a-REST-Client%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Drupal/C4/RESTful-API-with-a-REST-Client/English-timed&amp;action=history"/>
		<updated>2026-04-29T17:36:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Drupal/C4/RESTful-API-with-a-REST-Client/English-timed&amp;diff=43426&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot; {| border=1 | &lt;center&gt;Time&lt;/center&gt; | &lt;center&gt;Narration&lt;/center&gt;  |- | 00:01 | Welcome to the spoken tutorial on''' RESTful API with a REST Client'''.  |- | 00:06 | In this t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Drupal/C4/RESTful-API-with-a-REST-Client/English-timed&amp;diff=43426&amp;oldid=prev"/>
				<updated>2018-06-11T12:06:10Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; {| border=1 | &amp;lt;center&amp;gt;Time&amp;lt;/center&amp;gt; | &amp;lt;center&amp;gt;Narration&amp;lt;/center&amp;gt;  |- | 00:01 | Welcome to the spoken tutorial on&amp;#039;&amp;#039;&amp;#039; RESTful API with a REST Client&amp;#039;&amp;#039;&amp;#039;.  |- | 00:06 | In this t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{| border=1&lt;br /&gt;
| &amp;lt;center&amp;gt;Time&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;Narration&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:01&lt;br /&gt;
| Welcome to the spoken tutorial on''' RESTful API with a REST Client'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:06&lt;br /&gt;
| In this tutorial, we will learn about '''REST client. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:11&lt;br /&gt;
| We also learn to use the '''REST client '''to  Retrieve data using '''GET method'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:17&lt;br /&gt;
|  Create a new node using '''POST method'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:20&lt;br /&gt;
|  Modify an existing node using '''PATCH method''' and&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:24&lt;br /&gt;
|  Delete an existing node using '''DELETE method'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:28&lt;br /&gt;
| To record this tutorial, I am using  '''Ubuntu Linux 16.04''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:34&lt;br /&gt;
|  '''Drupal 8 '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:36&lt;br /&gt;
|  '''Postman '''as a''' REST client '''and  '''Firefox web browser'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:41&lt;br /&gt;
| You can use any '''REST client''' and web browser as per your choice. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:46&lt;br /&gt;
| To practise this tutorial, you should have basic knowledge of''' Drupal'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:52&lt;br /&gt;
| The '''RESTful API''' should have been implemented in your '''Drupal '''website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:57&lt;br /&gt;
| If not, please go through the previous '''Drupal''' tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:03&lt;br /&gt;
| You should also have a working '''Internet''' connection.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:08&lt;br /&gt;
| First we will confirm whether '''RESTful API''' is implemented in our '''Drupal8''' site.&lt;br /&gt;
&lt;br /&gt;
To do so, open our '''Drupa8''' site.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:18&lt;br /&gt;
| Then go to '''Structure''' and '''Views'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:23&lt;br /&gt;
| Here you can see that '''RESTful API''' is implemented in the '''Events content type'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:30&lt;br /&gt;
| Note that we have already learnt to implement the '''RESTful API '''earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:35&lt;br /&gt;
| Now we will learnt to check our '''RESTful API''' using a '''REST client'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:41&lt;br /&gt;
| I will use '''Postman '''as a''' REST client'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:44&lt;br /&gt;
| You can use any '''REST client''' as per your choice.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:49&lt;br /&gt;
| '''Postman''' is a powerful '''HTTP client '''for testing '''web services.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:54&lt;br /&gt;
| To install the '''Postman client''', refer to the '''Additional reading material''' link of this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:01&lt;br /&gt;
| The following steps are applicable to '''Bitnami Drupal Stack'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:06&lt;br /&gt;
| But most of the steps are applicable to any other '''Drupal installation''', as well.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:12&lt;br /&gt;
| Let us open the '''Postman client'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:15&lt;br /&gt;
| First we will learn to retrieve data for '''Anonymous users''' using '''GET method'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:21&lt;br /&gt;
| Choose '''GET''' from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:24&lt;br /&gt;
| Recall that earlier we had implemented the '''RESTful API '''on our '''Events content type'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:31&lt;br /&gt;
| We will now enter the path of our '''RESTful API'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:36&lt;br /&gt;
| Here '''localhost:8080''' is my '''server '''name.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:41&lt;br /&gt;
| If you are not using '''Bitnami Drupal stack''', please use '''localhost '''instead of '''localhost:8080.''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:50&lt;br /&gt;
| '''drupal''' is the folder of my '''Drupal '''instance.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:53&lt;br /&gt;
| '''events '''is the '''content type''' on which we have configured the '''RESTful API'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:00&lt;br /&gt;
| Now click on the '''Send''' button at the top right corner.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:03&lt;br /&gt;
| You can see here the contents of our '''events content type '''in''' json format'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:09&lt;br /&gt;
| Next let us learn to retrieve a single '''node'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:13&lt;br /&gt;
| Click on the plus button at the top panel to add a new tab. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:18&lt;br /&gt;
| Choose '''GET''' from the dropdown list.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:21&lt;br /&gt;
| We have to give the exact path of the particular '''node'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:25&lt;br /&gt;
| Click on the '''Send''' button. You can see here the content of that particular '''node''' is retrieved.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:32&lt;br /&gt;
| Next let us learn to create a new '''node''' for '''Authenticated users''' using '''POST method'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:39&lt;br /&gt;
| Click on the plus button at the top panel to add a new tab. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:44&lt;br /&gt;
| Choose '''POST''' from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:47&lt;br /&gt;
| Type the path as shown. Here '''localhost:8080''' is my '''server''' name. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:55&lt;br /&gt;
| '''drupal''' is the folder of my '''Drupal''' instance. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:59&lt;br /&gt;
| We have to hard-code the rest of the things.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:02&lt;br /&gt;
| Under '''Authorization''', we will change the '''Type''' as '''Basic Authentication'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:08&lt;br /&gt;
| Now we will give the '''username''' and '''password''' of our '''Drupal''' website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:13&lt;br /&gt;
| Click on the '''Preview Request''' button at the left hand side to update our '''request'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:19&lt;br /&gt;
| Click on the '''Headers''' tab. Here you can see the '''token''' for the '''basic authentication'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:26&lt;br /&gt;
| We will set the '''Content-Type''' to '''application/hal+json'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:32&lt;br /&gt;
| Now we will go to the '''Body''' tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:34&lt;br /&gt;
| Let us change the '''data format''' as '''raw.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:38&lt;br /&gt;
| Here we must declare the required '''title''' and '''type fields.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:43&lt;br /&gt;
| So type the following code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:46&lt;br /&gt;
| This '''json''' code is used to create a new code of the type '''events'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:52&lt;br /&gt;
| For that we specify the values for title and body fields.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:57&lt;br /&gt;
| The same code is given in the '''Code files''' link of this tutorial. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:02&lt;br /&gt;
| Please download and use it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:05&lt;br /&gt;
| Click on the '''Send''' button at the top right corner.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:09&lt;br /&gt;
| If the content is successfully posted, you can see the '''json '''code of this content at the bottom.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:16&lt;br /&gt;
| We can also check the content in our '''Drupal''' website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:20&lt;br /&gt;
| Switch back to our '''Drupal''' site.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:23&lt;br /&gt;
| Here you can see the '''event''' which is posted from the '''Postman client'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:28&lt;br /&gt;
| Note that the '''UID''' of this post is '''100'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:32&lt;br /&gt;
| We will use this '''UID''' in the postman client to modify this '''node'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:38&lt;br /&gt;
| Next let us learn to modify a '''node''' for '''Authenticated users''' using '''PATCH method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:45&lt;br /&gt;
| Let us switch back to the '''Postman client.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:48&lt;br /&gt;
| Click on the plus button at the top panel to add a new tab. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:52&lt;br /&gt;
| Choose '''PATCH''' from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:55&lt;br /&gt;
| We will enter the '''URL''' of the '''node''' which we want to modify.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:00&lt;br /&gt;
| For example, we will modify the '''node''' which we created using '''POST method'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:05&lt;br /&gt;
| The '''UID''' of this '''post''' is '''100'''. We will enter the URL of the '''node 100'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:14&lt;br /&gt;
| Under '''Authorization''', we will change the '''Type''' as '''Basic Authentication'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:20&lt;br /&gt;
| Now we will give the '''username''' and '''password '''of our '''Drupal''' website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:25&lt;br /&gt;
| Click on the '''Preview Request''' button at the left hand side.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:28&lt;br /&gt;
| Click on the '''Headers''' tab. Here you can see the '''token''' for the '''basic authentication'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:35&lt;br /&gt;
| We will set the '''Content-Type''' to '''application/hal+json'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:41&lt;br /&gt;
| Now we will go to the '''Body''' tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:44&lt;br /&gt;
| Change the '''data format '''as '''raw.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:47&lt;br /&gt;
| And type the following code here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:51&lt;br /&gt;
| In this code we modify the values for both the '''title''' and the '''body fields'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:57&lt;br /&gt;
| The same code is given in the '''Code files''' link of this tutorial. &lt;br /&gt;
&lt;br /&gt;
Please download and use it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:05&lt;br /&gt;
| Then click on the '''Send''' button at the top right corner.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:09&lt;br /&gt;
| You can see the '''Status '''as '''200 OK''' which means the content is modified.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:16&lt;br /&gt;
| Let us check the content in our '''Drupal '''website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:20&lt;br /&gt;
| Switch back to our '''Drupal''' website. Let us refresh the page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:25&lt;br /&gt;
| Here you can see that the '''event''' is successfully modified using the '''PATCH method'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:31&lt;br /&gt;
| Next let us learn to delete an existing '''node''' for '''Authenticated users''' using '''DELETE method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:38&lt;br /&gt;
| I will choose '''node 100''' which was created by me as an '''authenticated user'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:44&lt;br /&gt;
| Remember that we have permitted the '''authenticated users''' to delete their own content only.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:50&lt;br /&gt;
| Switch back to the '''Postman client'''. Click on the plus button to add a new tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:57&lt;br /&gt;
| Choose '''DELETE''' from the drop-down list.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:00&lt;br /&gt;
| We will enter the '''URL''' of the '''node''' which we want to delete.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:04&lt;br /&gt;
| Under '''Authorization''', we will change the '''Type''' as '''Basic Authentication'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:10&lt;br /&gt;
| Now we will give the '''username''' and '''password''' of our '''Drupal''' website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:14&lt;br /&gt;
| Click on the '''Preview Request''' button at the left hand side.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:18&lt;br /&gt;
| Then click on the '''Headers''' tab.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:21&lt;br /&gt;
| We will set the '''Content-Type''' to '''application/hal+json'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:28&lt;br /&gt;
| Click on the '''Send''' button at the top right corner.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:31&lt;br /&gt;
| You can see the '''Status '''as''' 204 No content''' which means the content is deleted.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:38&lt;br /&gt;
| Switch back to our '''Drupal''' site.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:41&lt;br /&gt;
| Let us refresh the page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:43&lt;br /&gt;
| We can see that the '''node''' is successfully deleted.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:47&lt;br /&gt;
| This is all about managing content through '''Postman client'''.&lt;br /&gt;
&lt;br /&gt;
With this, we come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:55&lt;br /&gt;
| Let us summarize. In this tutorial, we have learnt about-  '''Postman client '''as a '''REST client''' and&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:03&lt;br /&gt;
|  Managing content through '''Postman client''' using '''GET, POST, PATCH '''and''' DELETE methods'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:10&lt;br /&gt;
| As an assignment -  Create some new '''articles''' through '''REST client '''and  Modify the '''articles''' using '''PATCH method'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:19&lt;br /&gt;
| The video at the following link summarises the Spoken Tutorial project. Please download and watch it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:27&lt;br /&gt;
| The Spoken Tutorial Project Team conducts workshops and gives certificates to those who pass online tests.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:38&lt;br /&gt;
|  Spoken Tutorial Project is funded by  NMEICT, Ministry of Human Resource Development and NVLI, Ministry of Culture &lt;br /&gt;
&lt;br /&gt;
Government of India.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:49&lt;br /&gt;
| This tutorial is contributed by Vishal Jindal.&lt;br /&gt;
&lt;br /&gt;
This is Priya from IIT Bombay signing off. Thanks for joining.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>