Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rakibrahman/hadith-api
A Open Source API for hadiths in Bangla for the first time.
https://github.com/rakibrahman/hadith-api
api heroku-deployment javascript json open-source
Last synced: 1 day ago
JSON representation
A Open Source API for hadiths in Bangla for the first time.
- Host: GitHub
- URL: https://github.com/rakibrahman/hadith-api
- Owner: RakibRahman
- Created: 2021-05-02T21:47:12.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T08:15:52.000Z (about 2 years ago)
- Last Synced: 2023-04-09T14:23:02.860Z (almost 2 years ago)
- Topics: api, heroku-deployment, javascript, json, open-source
- Language: JavaScript
- Homepage: https://bn-hadith-api.herokuapp.com/hadiths
- Size: 138 KB
- Stars: 21
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hadith API
A API for hadiths in bengali language for the first time!
From this API you will get:
- Hadith narrator
- Hadith number
- Hadith authenticityAPI: https://bn-hadith-api.herokuapp.com/hadiths
To fetch data from this api you can use following examples:
### Using Promise:
```
fetch('https://bn-hadith-api.herokuapp.com/hadiths')
.then(response => response.json())
.then(data => console.log(data));
```### Using Async/Await:
```
async function () {
const fetchAPI = fetch(`https://bn-hadith-api.herokuapp.com/hadiths`);
const response = await fetchAPI;
const data = await response.json();
console.log(data);
}
```**To contribute:**
- Fork the repository
- Clone the repository to your pc
- add hadith data to the following format:```
{
"id": ,
"name": "",
"description": "",
"references": "",
"grade": ""
}```
- keep track of **id**
- Try to add at least ten hadiths.
- create pull request**Thanks to [iHadis](http://ihadis.com/) for providing hadiths**