# REST API

The **REST API** uses **RESTful** architecture to provide a simple, consistent interface. One of the main advantages of the **REST API** is that it doesn't require many tools to access your data.&#x20;

## REST resources and requests&#x20;

The **REST API** is based on the use of resources: data elements in MeltingSpot, such as lives, collections, search results, etc. Each resource is exposed via a **URL** and can be accessed by sending **HTTP requests** to the corresponding **URL**. Depending on the resource you wish to access, and how you construct an **HTTP request**, you can perform several types of operations:&#x20;

* Create resources&#x20;
* Update resources&#x20;
* Delete resources&#x20;
* Retrieve data&#x20;
* Search your resources

You can send **HTTP requests** using a variety of software tools. However, no matter how you submit your requests, the elements don't change. A typical request consists of these elements.&#x20;

* **URL:** this is the path to a resource in MeltingSpot.&#x20;
* **HTTP method:** this is the action you wish to perform on the resource in question
  * `GET`: retrieves data&#x20;
  * `POST`: to create data&#x20;
  * `PUT`: to modify data&#x20;
  * `DELETE`: deletes data&#x20;
* **Headers:** transmit parameters and customize HTTP request options.&#x20;
* **Body:** allows you to provide additional information, such as the first name of the spotMember you wish to add to a given collection.
