REST API for storing and retrieving documents. Documents can belong to patent or non-patent literature. The default format of data is JSON but other formats are supported. Drawings & figures are also supported.
For more detailed information, please refer to PQAI Wiki.
Method | Endpoint | Comments | |
---|---|---|---|
GET |
/patents/[docId] |
Returns a document’s JSON data | |
GET |
/patents/[docId]/drawings |
Returns a list of document’s drawing identifiers | |
GET |
/patents/[docId]/drawings/[n] |
Returns a single patent drawing | |
* | GET |
/patents/[docId]/thumbnails/[n] |
Returns a single patent thumbnail |
*Yet to be implemented
- Clone this repository
- Create a
.env
file using/env
template and set environment variable values - Create a virtual environment and install dependencies:
pip install -r requirements.txt
- Run the service:
python3 main.py
- Clone this repository
- Create a
.env
file using/env
template and set environment variable values - Give execution permission to the deployment script:
chmod +x deploy.sh
- Run deployment script:
bash deploy.sh
The project is open-source under the MIT license.
We welcome contributions.
To make a contribution, please follow these steps:
- Fork this repository.
- Create a new branch with a descriptive name
- Make the changes you want and add new tests, if needed
- Make sure all tests are passing
- Commit your changes
- Submit a pull request
Please create an issue if you need help.