I think the best option for you is to run a simple app in flask. It is a framework for creating server side software.
Here is a quick hello world for POST request:
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/enableSkynet', methods=['POST'])
def enableSkynet():
data = request.json
# here is your parameter
parameter = request.json["parameterName"]
print(parameter)
As a body of the post request you pass a JSON encoded object containing whatever parameters you need.
Here is how you write JSON: https://www.tutorialspoint.com/json/json_syntax.htm (https://www.tutorialspoint.com/json/json_syntax.htm)
To run the above code you need to install the following dependencies (available via pip):
- flask
- flask-jsonpify
- flask-restful
Flask has a built in debug server that you can run by simply running your app script from a console.
Once you are ready to deploy you can run flask on NGINX. Here is a link to a tutorial that demonstrates just that: https://www.raspberrypi-spy.co.uk/2018/12/running-flask-under-nginx-raspberry-p (https://www.raspberrypi-spy.co.uk/2018/12/running-flask-under-nginx-raspberry-p)