A RESTful API for accessing classical Persian poetry and literature, including works from Hafez, Khayyam, Moulavi, and Sa'adi.
- Features
- Requirements
- Installation and Setup
- Running the Application
- API Endpoints
- Contributing
- License
- Access to classical Persian poetry from renowned poets
- Random poem selection functionality
- Filter poems by category and specific numbers
- RESTful API design with JSON responses
- Support for Hafez's ghazals, ghete, robaee, ghaside, and montasab
- Support for Khayyam's robaee and tarane
- Support for Moulavi's works from Shams and Masnavi
- Access to Sa'adi's Golestan by bab and hekayat numbers
- Python
- Django & Django REST Framework
git clone https://github.com/amirreza-jabbari/poets-api.git
cd poets-apiIf running locally:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtpython manage.py makemigrations
python manage.py migrate --fake-initialpython manage.py createsuperuserpython manage.py runserverYou can see complete documentation of Poets API Endpoints in the endpoints.md file.
Contributions are welcome! Please submit pull requests or open issues. Make sure to update tests and documentation accordingly.
This project is licensed under the MIT License. See the LICENSE file for details.