Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lakshyapachkhede/geetaapi
A Node.js and MongoDB-based API providing Bhagavad Gita chapters and shlokas in Hindi. Access chapter names, meanings, summaries, and retrieve shlokas with their meanings. Perfect for integrating Gita content into apps. Built with Express.js for easy spiritual app development.
https://github.com/lakshyapachkhede/geetaapi
express geeta node rest rest-api
Last synced: about 1 month ago
JSON representation
A Node.js and MongoDB-based API providing Bhagavad Gita chapters and shlokas in Hindi. Access chapter names, meanings, summaries, and retrieve shlokas with their meanings. Perfect for integrating Gita content into apps. Built with Express.js for easy spiritual app development.
- Host: GitHub
- URL: https://github.com/lakshyapachkhede/geetaapi
- Owner: Lakshyapachkhede
- Created: 2024-09-07T02:11:37.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-10T01:50:44.000Z (4 months ago)
- Last Synced: 2024-09-10T13:56:44.983Z (4 months ago)
- Topics: express, geeta, node, rest, rest-api
- Language: JavaScript
- Homepage: https://geeta-api.vercel.app
- Size: 252 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Geeta API
Geeta API is a RESTful API that provides access to chapters and shlokas from the Bhagavad Gita in **Hindi**. The API returns chapter details such as names, meanings, summaries, and individual shlokas with their corresponding meanings.
## Features
- Retrieve a list of all chapters with their Hindi names, meanings, and summaries.
- Get details for a specific chapter in Hindi.
- Fetch all shlokas from a given chapter in Hindi.
- Retrieve a specific shloka by chapter and verse in Hindi with its meaning.## API Endpoints
### 1. List All Chapters
```
GET /adhyay/
```
Returns a list of all chapters in the Bhagavad Gita, including the chapter name, its meaning, and a brief summary in Hindi.**Response Example:**
```json
[
{
"chapter": 1,
"name": "अर्जुन विषाद योग",
"meaning": "अर्जुन के विषाद का योग",
"summary": "इस अध्याय में अर्जुन युद्ध के मैदान में शोक और भ्रम से घिर जाते हैं..."
},
...
]
```### 2. Get Details of a Specific Chapter
```
GET /adhyay/{chapter_number}
```
Returns the details of the specified chapter in Hindi.**Path Parameters:**
- `chapter_number`: The number of the chapter (1-18)**Response Example:**
```json
{
"chapter": 1,
"name": "अर्जुन विषाद योग",
"meaning": "अर्जुन के विषाद का योग",
"summary": "इस अध्याय में अर्जुन युद्ध के मैदान में शोक और भ्रम से घिर जाते हैं..."
}
```### 3. List All Shlokas from a Chapter
```
GET /shlok/{chapter_number}
```
Returns a list of all shlokas from the specified chapter in Hindi.**Path Parameters:**
- `chapter_number`: The number of the chapter (1-18)**Response Example:**
```json
[
{
"shloka": "धृतराष्ट्र उवाच...",
"meaning": "धृतराष्ट्र ने कहा:..."
},
...
]
```### 4. Get a Specific Shloka by Chapter and Verse
```
GET /shlok/{chapter_number}/{verse_number}
```
Returns a specific shloka and its meaning in Hindi.**Path Parameters:**
- `chapter_number`: The number of the chapter (1-18)
- `verse_number`: The number of the verse in the chapter**Response Example:**
```json
{
"shloka": "धृतराष्ट्र उवाच...",
"meaning": "धृतराष्ट्र ने कहा:..."
}
```