https://github.com/imadmi/videoask_backend
https://github.com/imadmi/videoask_backend
backend fastapi
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/imadmi/videoask_backend
- Owner: imadmi
- Created: 2024-04-09T15:34:41.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T15:40:31.000Z (about 2 years ago)
- Last Synced: 2025-03-27T20:33:11.696Z (over 1 year ago)
- Topics: backend, fastapi
- Language: Python
- Homepage: https://videoask-backend.onrender.com/docs
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastAPI Video Ask Service
## Description
This project provides endpoints to manage video asks using FastAPI.
## Installation
```
git clone https://github.com/imadmi/videoask_backend.git
```
- Install dependencies using pipenv:
```
pipenv install
```
- Install dependencies without pipenv:
```
cd videoask_backend
source venv/bin/activate
pip install -r requirements.txt
```
## Usage
1- Run the FastAPI server:
```
uvicorn main:app --reload
```
2- Access the API documentation at http://localhost:8000/docs or http://localhost:8000/redoc.
3- Use the provided endpoints to interact with the service.
## Endpoints
- POST /saveVideoAsk: Save multiple video ask objects in the database.
- GET /getVideoAsks: Retrieve all video ask objects from the database.
- GET /getVideoAsk/{id}: Retrieve a video ask object by its ID from the database.
- POST /uploadfile: Upload a file and return the URL.
- DELETE /deleteAllVideoAsks: Delete all video ask objects from the database. (Dev mode)
- DELETE /deleteVideoAsk/{id}: Delete a video ask object by its ID from the database. (Dev mode)