I'm using EE as a REST API, consumed by a web app. My question is, how can I create a channel entry via post request from my Web App? I have a contact form whose data needs to be handled. That's all I need :) I've been researching the discussions around the web about using EE as REST API and microservices, but all I found is an add-on with a prize of $65 and a EE Open API, which for some reason I can't trigger, after the installation.
Essentially, you'll create a module with an ACT URL. (https://docs.expressionengine.com/v2/development/modules.html).
You'll have your
mod.module_name.php file, which will contain your logic to retrieve the data and enter it into the database using the Database Class (https://docs.expressionengine.com/v2/development/usage/database.html).
Then in you're
upd.module_name.php file, you'll need to ensure that you add records to the
exp_actions table, which will give you the ID for your ACT URL. https://docs.expressionengine.com/v2/development/modules.html#the-update-file-upd-module-name-php
if you want to take your API to the next level, you can check out this article: https://medium.com/expressionengine-cms/building-an-api-for-your-add-ons-with-expressionengine-and-the-a-team-85c1c9bc9e2c
I've found this as a great solution - EE Open Api.