Open arcane-engine[bot] opened 4 months ago
I've created the initial project files as requested:
requirements.txt
- Contains the dependencies for the project, including FastAPI and Uvicorn.main.py
- Includes a basic FastAPI setup with an endpoint /webhook/jira
designed to handle POST requests from JIRA webhooks. This endpoint parses the JIRA webhook payload into variables: issue_key
, issue_summary
, and issue_status
, which you can use for further processing.You can now proceed with testing and further development of the application.
PR: π Initial project setup with FastAPI and JIRA webhook endpoint
If you require further changes, continue our conversation over there!
To initialize the project with Python and FastAPI, follow these steps:
Set up a virtual environment:
python3 -m venv venv
to create a virtual environment.source venv/bin/activate
(Linux/Mac) orvenv\Scripts\activate
(Windows).Install FastAPI and Uvicorn:
pip install fastapi
.pip install uvicorn
.Create initial project files:
main.py
: This will be the entry point of your application.requirements.txt
: List all the project dependencies here.Develop the API endpoint:
main.py
, import FastAPI and create an instance of it.Run the application:
uvicorn main:app --reload
to run the application. Ensureapp
is the instance name of your FastAPI application inmain.py
.Test the application:
This issue will serve as a starting point for the project. Further refinement and detailed planning of the API endpoint that handles the JIRA webhook will be needed.