> For the complete documentation index, see [llms.txt](https://cathy-thy.gitbook.io/drupal-9/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cathy-thy.gitbook.io/drupal-9/custom-modules/custom-restful-api.md). Agents can also search and read this documentation through its [MCP server](https://cathy-thy.gitbook.io/drupal-9/~gitbook/mcp).

# Custom Restful API

### 1. Understanding RESTFUL API

* REST = Representational State Transfer
* REST API is a way of accessing web services in a simple and flexible way without having any processing.
  * **GET**: to read/ retrieve
  * **POST**: to create
  * **PUT**: to update
  * **DELETE**: to delete

![](https://3571417386-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2c2poVQgh9M8bTCLRSBz%2Fuploads%2FDaigE06cEYLCaB1TWatA%2Fapi11.png?alt=media\&token=87281139-0afa-4869-9049-8b029f0a9922)
