Warning
WORK IN PROGRESS; В РОБОТІ
- SSL
- Tuning
-
Create a
MySQL
User and Database on externalMySQL 8
or better.CREATE DATABASE IF NOT EXISTS api_gateway_fifo; CREATE USER IF NOT EXISTS 'api_gateway'@'%' IDENTIFIED BY 'your_mysql_password'; GRANT ALL PRIVILEGES ON api_gateway_fifo.* TO 'api_gateway'@'%'; FLUSH PRIVILEGES;
-
Clone Repository
git clone https://github.com/appatalks/fifo_api_gateway_server.git cd api_fifo_limiter/docker
-
Adjust
.env
to set environment variables
-
Start Server
bash run.sh
-
Direct API to Server Endpoint
curl -k -X POST https://<FIFO_API_SERVER>/api/save -H "Content-Type: application/json" -d '{"data": "example data"}' {"message":"Message enqueued: x_id=39-20240713141928","status":"success"}
-
Retrieve from FIFO Queue and Delete Data
curl -k -X GET https://<FIFO_API_SERVER>/api/deliver {"data":"example data"}
-
Optional Target by Message ID to bypass queue:
curl -k -X GET https://<FIFO_API_SERVER>/api/deliver?x_id=39-20240713141928 {"data":"example data"}