luis901101
02/14/2024, 9:03 PM_format
or _pretty
query params on a request I get a 400 Bad Request
error:
Request:
bash
GET https://api.medplum.com/fhir/R4/CarePlan?_count=30&_offset=0&_format=json&_pretty=true
Response:
json
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "invalid",
"details": {
"text": "Unknown search parameter: _format"
}
}
],
"extension": [
{
"url": "https://medplum.com/fhir/StructureDefinition/tracing",
"extension": [
{
"url": "requestId",
"valueUuid": "58966f33-c251-4e8d-b0f4-d6e72150ba40"
},
{
"url": "traceId",
"valueUuid": "8b67f061-e6fc-4fc5-865c-df8e611f66ee"
}
]
}
]
}
These params are valid query params according to https://build.fhir.org/http.html#parameters so it should work, anyway I think it would be better if the request doesn't fail because of unrecognized params.rahul1
02/16/2024, 4:42 PMrahul1
02/16/2024, 4:46 PMluis901101
02/16/2024, 5:00 PMluis901101
02/16/2024, 5:02 PMcodye
02/19/2024, 8:01 PMcodye
02/19/2024, 9:45 PM