python3 -m pip install --user pipenv- Install pipenvpipenv install- Install dependenciespipenv run python main.py- Start the server
PORT- The port the server will listen on. Default is5000.POSTGRES_USER,POSTGRES_PASSWORD,POSTGRES_HOST,POSTGRES_PORT,POSTGRES_DB- Connection details for the PostgreSQL database. All are requiredSERVICE_BASE_URL- The base URL of the report service
Get a list of reports. This endpoint fetches data from the service and returns it as JSON.
Get a list of items. This endpoint fetches data from the database and returns it as JSON.
Create a new item. This endpoint accepts a JSON object in the request body and saves it to the database.
{
"name": "Item name",
}Delete an item by name. This endpoint removes the item from the database.