curl --request GET \
--url https://api.example.com/doctor/search{
"[]": [
{
"crm": "<string>",
"email": "<string>",
"password": "<string>",
"name": "<string>",
"specialty": "<string>",
"telephone": "<string>",
"consultationValue": 123
}
],
"400 Bad Request": {},
"200 OK (Empty Array)": {}
}curl --request GET \
--url https://api.example.com/doctor/search{
"[]": [
{
"crm": "<string>",
"email": "<string>",
"password": "<string>",
"name": "<string>",
"specialty": "<string>",
"telephone": "<string>",
"consultationValue": 123
}
],
"400 Bad Request": {},
"200 OK (Empty Array)": {}
}curl -X GET "http://localhost:8080/doctor/search?crm=123456789"
curl -X GET "http://localhost:8080/doctor/search?name=Silva"
curl -X GET "http://localhost:8080/doctor/search?specialty=Cardiology"
curl -X GET "http://localhost:8080/doctor/[email protected]"
[
{
"crm": "123456789",
"email": "[email protected]",
"password": "securePassword123",
"name": "Dr. João Silva",
"specialty": "Cardiology",
"telephone": "+5534999887766",
"consultationValue": 250.00
}
]
[].