Get protocol by ID with full details
curl --request GET \
--url http://localhost:8081/protocols/{id}const options = {method: 'GET'};
fetch('http://localhost:8081/protocols/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/protocols/{id}"
response = requests.get(url)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"institutionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"prompt": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Get protocol by ID with full details
Returns the protocol with all related data in a single response: forms (ordered by version), each form’s questions (ordered by position) with options (ordered by position), and score ranges (ordered by minScore). Loaded in one query to avoid N+1.
GET
/
protocols
/
{id}
Get protocol by ID with full details
curl --request GET \
--url http://localhost:8081/protocols/{id}const options = {method: 'GET'};
fetch('http://localhost:8081/protocols/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/protocols/{id}"
response = requests.get(url)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"institutionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"prompt": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}