-
Notifications
You must be signed in to change notification settings - Fork 25
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
Subject type not available in /api/subjects #712
Comments
This change could cause issues for other External API consumers, as they might rely on the field to determine the subjectType amongst the returned entities, when invoking GET ALL Subjects. If a change is to be done, i would recommend retaining the subjectType Name details always irrespective of "subjectType=" filter being specified. |
@himeshr this was a recent break in functionality. I doubt if any existing consumers will be affected by it. |
Relevant commit fb31d5c |
The value of "Subject type" is available only when it is requested in the url, and not present when it is not requested in the url.
eg:
Request
https://app.rwb.avniproject.org/api/subjects?subjectType=Farmer
Response
Request
https://app.rwb.avniproject.org/api/subjects
Response
The text was updated successfully, but these errors were encountered: