Comments (7)
Only the :query
is required, if you need to specifiy something specific then you use the additional options.
from api-public.
I think you misunderstood the point.
Say I only want lineno & Gurmukhi for any route, then API could accept some more params to trim response based on the fields asked by the user. This will help small and large applications to spend less time on HTTP requests.
Something like
/shabad/123?only=lineno,gurmukhi
this gives only gurmukhi and lineno in response
/shabad/123?ignore=shabadid,gurmukhi
this gives everything except shabadid & gurmukhi
from api-public.
In the modern world, reducing that much data wont do much. My API is behind cloudflare which caches the results in its CDNs all over the world.
from api-public.
It does matter when you have a lot of requests, in cases like search or angs with a lot of lines.
For example search results page would only want to show gurmukhi and english translation.
Do remember that third world countries still have 2G as their average speed and it too is flaky at times.
from api-public.
My API is behind cloudflare which caches the results in its CDNs all over the world. The requests don't directly come from my server in New York City.
from api-public.
That only solves the load on server and not on client.
Note that data is one part (might not be an issue for west
), but processing that data is also an issue. Cheap-ass android phones with slow browsers still need to deal with arrays of huge strings.
I insist to re-consider only
& ignore
params, not to be implemented immediately but at least in future.
from api-public.
Continued on #19
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.