Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement lang query parameter #48

Open
ahadith opened this issue Jun 29, 2020 · 2 comments
Open

Implement lang query parameter #48

ahadith opened this issue Jun 29, 2020 · 2 comments

Comments

@ahadith
Copy link
Contributor

ahadith commented Jun 29, 2020

If a user specifies the languages in which they want data returned as a query parameter, then only return those languages.

@itsyaasir
Copy link

Assalamu Aleikum , is this lang query param needed for all the requests or just some specific ones?

@Glaisher
Copy link
Member

Assalamu Aleikum , is this lang query param needed for all the requests or just some specific ones?

Wa alaikumussalam. It'll be needed whenever language specific data is returned and as of right now, all the endpoints do have language specific data. See https://sunnah.api-docs.io/1.0/collections/get-a-collection-by-name for an example response of how we return it right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants