A Web service is a service offered by an electronic device to another electronic device, communicating with each other via the internet.
In a Web service, Web technology such as the HTTP, is utilized for machine-to-machine communication, more specifically for transferring machine readable file formats such as XML and JSON.
{
"user1" : {
"name" : "mahesh",
"password" : "password1",
"profession" : "teacher",
"id": 1
},
"user2" : {
"name" : "suresh",
"password" : "password2",
"profession" : "librarian",
"id": 2
}
}
GET | This is used to provide a read only access to a resource. |
PUT | V |
DELETE | This is used to remove a resource. |
POST | This is used to update a existing resource or create a new resource. |
Text
Text
Text
Text