<p>The ElementAPI plugin currently only supports consuming data from a Craft installation, not creating/POSTing to it.</p>

<p>It's on our long-term list to have a full on REST API for Craft where this would be possible, though.</p>

CC BY-SA 3.0
2015-12-04T18:48:45.013Z
Ah, good to know. Any rough timeline on when you guys would have this ready?
bert_teng
CC BY-SA 3.0
2015-12-04T18:55:04.247Z
Sorry, no ETA...
Brad Bell
CC BY-SA 3.0
2015-12-04T18:11:16.820Z
2015-12-04T18:11:16.820Z
Brad Bell
<p>You might want to check out this plug-in:</p>
<p><a href="https://github.com/airtype/restfulapi" rel="nofollow noreferrer">Restful Api</a></p>
<blockquote>
<p>Restful Api is a plugin for Craft CMS that exposes elements as resources via a restful api. While similar to Craft's own Element Api plugin, Restful Api offers a few more features such as support for more HTTP verbs, authentication and element type based permissions.</p>
<p>Restful Api utilizes Fractal to transform and serialize responses. Restful Api is also PSR-7 complaint. Its request and response objects can even be utilized by third party plugins if desired, although this has not been extensively tested yet.</p>
</blockquote>

CC BY-SA 3.0
2015-12-04T20:23:34.343Z
2015-12-04T20:23:34.343Z
2020-06-17T08:56:27.903Z
Alan Miller
<p>I am currently using Element API to serve Craft contents.</p>

<p>What I'm wondering is, is it possible to create an endpoint that handle POST requests? Like form submission and such?</p>

<p>All the examples that I've seen so far is to serve Craft entries as JSON.</p>

<plugin-elementapi>
Creating a POST request endpoint using Element API
# Creating a POST request endpoint using Element API

(Asked by: username_0 on 2015-12-04)

I am currently using Element API to serve Craft contents.

What I'm wondering is, is it possible to create an endpoint that handle POST requests? Like form submission and such?

All the examples that I've seen so far is to serve Craft entries as JSON.

**Tags:** plugin-elementapi

---

## 2 answers

### Answer by username_1 on 2015-12-04. Score: 1 | Accepted answer

The ElementAPI plugin currently only supports consuming data from a Craft installation, not creating/POSTing to it.

It's on our long-term list to have a full on REST API for Craft where this would be possible, though.

> **Comments:**
> **username_0**: Ah, good to know. Any rough timeline on when you guys would have this ready?  
> **username_1**: Sorry, no ETA...  

---

### Answer by username_2 on 2015-12-04. Score: 3

You might want to check out this plug-in:

[Restful Api](https://github.com/airtype/restfulapi)

> Restful Api is a plugin for Craft CMS that exposes elements as resources via a restful api. While similar to Craft's own Element Api plugin, Restful Api offers a few more features such as support for more HTTP verbs, authentication and element type based permissions.
>
> Restful Api utilizes Fractal to transform and serialize responses. Restful Api is also PSR-7 complaint. Its request and response objects can even be utilized by third party plugins if desired, although this has not been extensively tested yet.


---

