Skip to content

YashSaliya/Loop-Restaurant-Uptime-Solution-FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title: Store Status Report Generation

Table of Contents

Project Overview

This project implements a RESTful API using FastAPI for generating and retrieving reports asynchronously. The API allows users to trigger the generation of a report, which runs in the background, and then retrieve the report once it's completed.

Technologies Used

  • FastAPI: A high-performance web framework for building APIs with Python.
  • Uvicorn: An ASGI server for running Python web applications.
  • UUID: Used for generating unique report IDs.

Installation

Clone the repository:

git clone https://github.com/[your-username]/[your-repository-name].git

Usage

Install the Required Packages:

pip install -r requirements.txt

Run the application

uvicorn main:app --reload

This will start the server on localhost:8000

API Endpoints

Generate Report

  • Endpoint: POST/report
  • Description: This endpoint triggers the generation of a new report in the background and returns a JSON response containing the unique report ID.
  • Response:
  • {
      "report_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
    }

Get Report status/download

  • Endpoint: GET/report?report_id={report_id}
  • Description:This endpoint retrieves the status or the generated report based on the provided report ID.

Vide Demonstration

Loom Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages