Closed vinayvenu closed 5 months ago
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=
@himeshr this was a recent break in functionality. I doubt if any existing consumers will be affected by it.
Relevant commit fb31d5c0636c1fb704f5dbd30821bfe830c8f714
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
ResponseRequest
https://app.rwb.avniproject.org/api/subjects
Response