pucardotorg / dristi

MIT License
2 stars 12 forks source link

API compliance || Not able to search the details submitted case #753

Closed mustakim-egov closed 3 months ago

mustakim-egov commented 4 months ago

Describe the bug If the case is submitted by advocate by using API - https://dristi-dev.pucar.org/case/case/v1/_create API (both SAVE_DRAFT and SAVE_DRAFT) not able to search the details of the case. We are only able to search the case if the case is update by using the API_https://dristi-dev.pucar.org/case/case/v1/_update

To Reproduce Curl to reproduce the bug: curl --location 'https://dristi-dev.pucar.org/case/case/v1/_search' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "RequestInfo": { "apiId": "null", "ver": "null", "ts": null, "action": "POST", "did": null, "key": null, "msgId": "8c11c5ca-03bd-11e7-93ae-92361f002671", "userInfo": { "id": 188, "userName": "devuser5", "salutation": null, "name": "Ram babu", "gender": "MALE", "mobileNumber": "3989999999", "alternatemobilenumber": null, "emailId": null, "altContactNumber": null, "pan": null, "aadhaarNumber": null, "permanentAddress": null, "permanentCity": null, "permanentPinCode": null, "correspondenceAddress": null, "correspondenceCity": null, "correspondencePinCode": null, "active": true, "locale": null, "type": "EMPLOYEE", "accountLocked": false, "accountLockedDate": null, "fatherOrHusbandName": null, "relationship": null, "signature": null, "bloodGroup": null, "photo": null, "identificationMark": null, "createdBy": 130, "password": null, "otpReference": null, "lastModifiedBy": 130, "tenantId": "pg", "roles": [ { "code": "CASE_CREATOR", "name": "CASE_CREATOR", "tenantId": "pg" }, { "code": "MDMS_ADMIN", "name": "MDMS ADMIN", "tenantId": "pg" }, { "code": "SUPERUSER", "name": "Super User", "tenantId": "pg" }, { "code": "HRMS_ADMIN", "name": "HRMS_ADMIN", "tenantId": "pg" } ], "uuid": "16a7d2e8-a04d-4494-9110-687df70d8700", "createdDate": "06-05-2024 12:29:35", "lastModifiedDate": "06-05-2024 12:29:35", "dob": null, "pwdExpiryDate": "04-08-2024 12:29:35" }, "authToken": "a654f791-b85e-447d-992d-8668722ec9c8" }, "tenantId": "pg", "criteria": [ { "filingNumber": "F-C.1973.002-2024-000641" } ] }'

OS: windows -tool : postman

manimaarans commented 3 months ago

the changes are done