Set up a Django project and create a URL that takes POST requests. Take the following inputs in the body:
- name
- phone
- address which can have up to 10 inputs.
Create a PDF with a template header of any logo you like. Put the logo at the top as static for all pdfs and create a dynamic table to be populated below the logo as per the inputs in the POST request. The inputs can be variable numbers; the function should accommodate them. Create a random URL to access/download this PDF, which will expire, and delete the file from the server in 1 hour.
poetry install
poetry shell
./manage.py runserver
Check out api endpoints at /swagger