Comments (10)
This has been requested by others, I will look into implementing this into APIv3.
from api-public.
Yes, APIv2 will remain unchanged and will be served for apps who still need to use it.
APIv1 is still up to this day, even though it is 3-4 years old at this point.
from api-public.
Here is a preview of Today's Hukamnama in APIv3 (This is the only endpoint that is live ATM).
https://devapi.gurbaninow.com/v3/hukamnama/today
As you can see, this is using the new Gurbani Database which is being done from scratch (which is still in WIP), but the amount of data in the JSON has increased, mainly due to Mahan Kosh. This is a reason to implement the feature to only return requested fields.
I would like comments on the new APIv3 response structure before re-using it for the other endpoints.
from api-public.
Hi, appreciate this lean data service; but please announce this so that we can change/update our apps. Or better; serve the new api on new version; and retire the existing one in few weeks after that.
I have already subscribed to notification of this repo.
from api-public.
SSA,
Is it possible to fetch just data from a given granth by specifying pages start and end numbers? For example get data from Bhai Gurdass ji diyan Vaaran from pg 1 to 50?
from api-public.
@Shavinder Bhai Gurdas Ji Vaaran Page Numbers represent the Vaar No, which only goes up to 41.
Also, if you fetch a "page" from Bhai Gurdas Ji Vaaran, it returns the whole Vaar, which is big and will take time to load.
If you request all the Vaars, from 1 to 41, then that will be REALLY BIG file and will take forever for the client to load.
from api-public.
@sarabveer Thank you for your reply. I do not intend to use this in an online application. I just needed text to use offline, on my laptop, and my phone, for my own study, contemplation and research. I specifically need Bhai Gurdass Baani and Dasam Bani. This will be private use. Can you share text with me? I'd be grateful.
from api-public.
@Shavinder At the moment, I do not have any protocol in place for sharing raw text from the Gurbani Database.
from api-public.
@sarabveer Very great Sewa Ji Bahut hi nice..
Some Suggestions:
- Can all
viakhya
can be moved to its own object? i.e the current structure is:
Current:
root :
...
hukamnama :
[i]:
line:
...
punjabi:
default:
gianiharbhanssingh:
faridkotteeka:
bhaimanmohansingh:
mahankosh
My Suggestion:
root:
...
hukamnama:
[i]:
line:
... //many keys
punjabi:
default:
.....
others: //new addition from here onwards
[0]: //array first entry
name: gianiharbhanssingh:
text:
arth:
source:
notes:
reference:
[1]:
// same as above
mahankosh:
....
Reasons:
- Current object uses writer/source as object key; api consumers need to know the exact writer name; any new writer/source additions in api json will force the apps to be adjusted. If this all is put in a simple array; apps can just loop & consume the data. although we could just itriate over key names too. The other keys, like
text, arth, source, notes, ref
can be empty as per source. - Is it possible to add a lean hukamnama/shabad endpoint, defining the languages/teeka-sources etc?
- Please add an key/value pair showing the pass/fail status of api's connection & processing of hukumnama source. I.e. if api connected successfully to source for hukumnama at 9PM or 12 EST & if it fetched & processed & stored?
:)
will continue to add more
from api-public.
This is will be solved by exposing the GraphQL API
from api-public.
Related Issues (20)
- Please add Gurumukhi Ang in Hukamnama API HOT 1
- Jap Pauri 28 HOT 4
- Hi there i want to use this api for mobile is this usable for mobile apps HOT 1
- Question - Audio for Bani
- ios app using Gurbani Now API
- Hukamnama API showing yesterday's Hukamnama instead of today's
- where are the docs on how to use the api?
- CREATE HINDI TRANSLATION AS WELL HOT 1
- Move Docs to Wiki
- Merge Nanakshahi API HOT 1
- Rewrite API with Node.js
- Minor; Hukumnama for today 23/05/2018 does not load HOT 1
- Get All Shabad IDs HOT 2
- Incomplete Sri Guru Granth Sahib Ji (1430) HOT 1
- Mistake in Bhai Gurdaas Ji Vaar 1, Pauri 23 HOT 1
- Inconsistent Data Type for startang and endang HOT 2
- Is the service still working? HOT 2
- Add Hukamnama audio and/or video urls in the API HOT 2
- Add tests
- Daily Hukamnama not updating at the mentioned time HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-public.