JohnnyJumper / ami-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document Management API

This repository contains the source code for a Document Management API built with Flask.

Overview

The Document Management API provides endpoints for managing documents, including retrieving documents needing review, saving document changes, and finding duplicate documents.

Features

  • Retrieve documents needing review
  • Save document changes
  • Find duplicate documents

Installation

  1. Clone the repository:
git clone https://github.com/your-username/document-management-api.git

Install dependencies:

cd document-management-api
pip install -r requirements.txt

Run the server:

python app.py

Usage

  • GET /documents/needs_review: Retrieve documents needing review.
  • POST /documents/save_changes: Save document changes.
  • GET /documents/duplicates: Find duplicate documents.

Testing

Unit tests are included in the test_document_api.py file. Run the tests with:

python -m unittest test_document_api.py

About


Languages

Language:Python 100.0%