So if you are looking for a free public sample dummy rest API URL with XML response for testing purposes then you have come to the right place.
Sometimes we need a sample rest API with XML response for testing XML while developing an application. we have created a list of dummy free rest APIs for testing without authentication for a software developer for demo purposes you can use consume it in your application. and let you know that all endpoints are ajax enable.
Api Base Url- http://samplerestapi.com
This API REST endpoint returns all Petslover data from the database. where ”page”– parameter is option field and API returns the maximum of 10 records per page.Open the below URL in the browser, you can see the response.
http://samplerestapi.com/api/petslover
<PetsLoverInformationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <page>1</page> <per_page>10</per_page> <totalrecord>14740</totalrecord> <total_pages>1474</total_pages> <travelers> <PetsloverInformation> <id>17239</id> <name>vinee</name> <email>[email protected]</email> <adderes>USA</adderes> <createdat>0001-01-01T00:00:00</createdat> </PetsloverInformation> <PetsloverInformation> <id>13814</id> <name>RDLKAUT36</name> <email>[email protected]</email> <adderes>BE</adderes> <createdat>2021-12-17T07:39:41.8449975</createdat> </PetsloverInformation> <PetsloverInformation> <id>275801</id> <name>id-rilhlzp</name> <email>[email protected]</email> <adderes>Shanghai</adderes> <createdat>2023-10-12T20:40:17.3344701</createdat> </PetsloverInformation> <PetsloverInformation> <id>267312</id> <name>2023???140932_006</name> <email>[email protected]</email> <adderes>USA</adderes> <createdat>2023-09-14T18:32:42.1328906</createdat> </PetsloverInformation> <PetsloverInformation> <id>17484</id> <name>Ramesh</name> <email>[email protected]</email> <adderes>India</adderes> <createdat>2022-01-29T06:05:15.5940364</createdat> </PetsloverInformation> <PetsloverInformation> <id>12660</id> <name>Quy test</name> <email>[email protected]</email> <adderes>USA</adderes> <createdat>0001-01-01T00:00:00</createdat> </PetsloverInformation> <PetsloverInformation> <id>14534</id> <name>dhoni</name> <email>[email protected]</email> <adderes>Punjab</adderes> <createdat>2021-12-28T07:39:40.298778</createdat> </PetsloverInformation> <PetsloverInformation> <id>17298</id> <name>vinee</name> <email>[email protected]</email> <adderes>USA</adderes> <createdat>0001-01-01T00:00:00</createdat> </PetsloverInformation> <PetsloverInformation> <id>276008</id> <name>Sameer</name> <email>[email protected]</email> <adderes>USA</adderes> <createdat>2023-10-13T19:36:59.8124831</createdat> </PetsloverInformation> <PetsloverInformation> <id>272127</id> <name>Assf29</name> <email>Satya321319</email> <adderes>USA</adderes> <createdat>2023-09-29T07:31:35.3457451</createdat> </PetsloverInformation> </travelers> </PetsLoverInformationResponse>
This API rest point endpoint returns all traveler detail by Id i.e we get single records from the database according to the id supplied.
<PetsloverInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>17239</id> <name>vinee</name> <email>[email protected]</email> <adderes>USA</adderes> <createdat>0001-01-01T00:00:00</createdat> </PetsloverInformation>
This endpoint response for put request, For updating the entity, you can use this endpoint, you need to pass the 3 parameters in the request body i.e name, email, and adderes.
http://samplerestapi.com/api/petslover/17239
<PetsloverInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>17239</id> <name>vinee gupa</name> <email>[email protected]</email> <adderes>USA California</adderes> </PetsloverInformation>
API Response
<PetsloverInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>17239</id> <name>vinee gupa</name> <email>[email protected]</email> <adderes>USA California</adderes> </PetsloverInformation>
This endpoint response for a post request, For updating the creating, you can use this endpoint, you need to pass the 3 parameters in the request body i.e name, email, and adderes.
http://samplerestapi.com/api/petslover
<PetsloverInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <name>Rajan Patel</name> <email>[email protected]</email> <adderes>Indai Gujrat</adderes> </PetsloverInformation>
API Response
<PetsloverInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>319720</id> <name>Rajan Patel</name> <email>[email protected]</email> <adderes>Indai Gujrat</adderes> <createdat>2024-03-08T11:19:18.008376Z</createdat> </PetsloverInformation>
This endpoint response for a delete request,this is a delete endpoint to delete the traveler object in the database
<ResposneData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Message>Record deleted successfully!</Message> </ResposneData>
*Thank you so much if you have a question please comment
There are many people who are fond of learning web designing and if you also want to make a career in web designing, then you need to learn html, css and xml language. We have already told about Html, Css. Today you will learn about xml.
Xml is a machine language also known as markup language. It was developed to meet the limitations of HTML. Designed to store and transfer data from XML.
Here are some basic information of xml, what is xml below, the full form of xml and also the information related to xml has been given. Must read the post till the end.
XML means extensible markup language. As the name suggests, it is an extensive form of markup language. That is, XML is a coding language that is used to create web pages.
As you know, HTML is used to create the structure or layout of web pages. With HTML, we are not able to store any kind of data. To overcome similar limitations of HTML, XML language was developed by W3C (World Wide Web Consortium) in 1996.
XML is a markup language that allows data to be stored and data transferred.
With the help of XML, we are able to store any kind of data and also transfer data from one web page to another very easily. That is, xml is also used as a database.
Xml can also be used by combining it with html which is called X-HTML.
Before the advent of XML, HTML was used as a markup language. But the features of html are limited. For example, html supports only predefined tags. html does not provide any kind of data store facility.
XML has been developed by the W3C to overcome these limitations of HTML. Xml provides the facility to create tags by itself, so that there is no hassle of remembering the tags.
At the same time, they provide the facility to store and transfer data. Today very big websites are also using application xml to store data.
By the way, the Default Option remains in the laptop or computer, to open the Xml file, we can open it without installing any software, in which the software like Notepad, Wordpad, are already installed so that we can easily access the Xml file. You can open or edit, let’s know about it.
how to open xml file in adnroid mobile
In Android Mobile, we do not get any such software or App Default so that we can edit or open XML file, for this we have to download an app from Play Store which is named Xml Editor after installing it Can Edit and Open Xml File in Android Phone