Skip to content

Commit

Permalink
tweak search result bundle pagination for claim abd claim response...
Browse files Browse the repository at this point in the history
  • Loading branch information
JFU-NAVA-PBC committed Feb 25, 2025
1 parent 4fcd1dc commit f8c26c1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/testclient/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,17 @@ def _get_data_json(request, name, params):
q_params.append('beneficiary')
q_params.append(beneficiary)

uri = NAV_URI_FMT.format(*q_params)

resp = None

if name == 'claim' or name == 'claimresponse':
resp = oas.post(uri)
# need to handle query parameters to body convert here for claim and claim response
json = {
'_count': request.GET.get('_count', 10),
'startIndex': request.GET.get('startIndex', 0),
}
resp = oas.post(uri, json=json)
else:
uri = NAV_URI_FMT.format(*q_params)
resp = oas.get(uri)

return resp.json()
Expand Down

0 comments on commit f8c26c1

Please sign in to comment.