2017-09-19 6 views
-1

내가, 내가 포함 된 데이터에 필터를 적용 문제 싶지 않은 작동하지 필터를 포함하지만 시나리오JSON API는

API 여기

입니다 작동하지 않습니다 :

/patient/257?include=patientdiagnosis&filter[patientdiagnosis.IsDeleted]=0 

또는

에게

하지만 응답으로 필터 데이터를 가져 오지 못했습니다.

의 53,691,363,210

데이터

"included": [ { "type": "patient-diagnosis", "id": "17", "attributes": { "PatientDiagnosisId": 17, "PatientID": 257, "ICDID": 2, "IsActive": false, "DiagnosisDate": "0001-01-01T00:00:00", "CreatedDate": "2017-08-25T03:37:46.0239768", "CreatedBy": 1, "UpdatedBy": null, **"IsDeleted": true**, "DeletedBy": null }, 

답변

0

포함 include 파라미터는 기본 데이터에 관련된 모든 자원을 포함하는 것을 의미한다. 환자 257에 대해 삭제되지 않은 모든 patient-diagnosis 리소스를 얻으려면 다음과 같이 요청을 구성해야합니다.

/patient/257/patient-diagnosis?filter[isdeleted]=false&include=patient