I have external site that needs to POST my drupal site (it basically shares data). I need to take the POST data parse it and create a node from it. Is this possible? I have created a PHP file take_post.php
this file receives the POST request, parses it creates a node object and then sends it to http://api/v1/node
this works fine, though it seems a little long winded?
My problem is that if a post is deleted from the external system a DELETE request is send via HTTP, however the external system has no idea of what the node ID is, and at the point of delete niether do. Is there a way to delete a node without knowing it's NID, maybe via a custom field value?