### List Resources by Query (GET) Source: https://api-docs.openpracticesolutions.com/index This snippet illustrates how to retrieve a list of resources based on specific query parameters using the GET HTTP method. Successful requests return a 200 OK status with the requested resources. Failures result in a 400/500 level response containing an OperationOutcome. ```cURL curl -X GET "https://api.openpractice.com/resources?queryParam=value" ``` -------------------------------- ### Retrieve Resource by ID (GET) Source: https://api-docs.openpracticesolutions.com/index This snippet demonstrates how to retrieve a specific resource by its unique identifier using the GET HTTP method. Successful requests return a 200 OK status with the requested resource in the response body. Failures result in a 400/500 level response containing an OperationOutcome. ```cURL curl -X GET "https://api.openpractice.com/resources/{id}" ``` -------------------------------- ### Create New Resource (POST) Source: https://api-docs.openpracticesolutions.com/index This snippet shows how to transmit new information to create a resource using the POST HTTP method. Successful requests return a 201 Created status, with the response headers containing a Location header pointing to the new resource. Failures result in a 400/500 level response containing an OperationOutcome. ```cURL curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' "https://api.openpractice.com/resources" ``` -------------------------------- ### Update Resource (PUT) Source: https://api-docs.openpracticesolutions.com/index This snippet demonstrates how to update an existing resource by sending its complete representation using the PUT HTTP method. This operation replaces the entire resource. Failures result in a 400/500 level response containing an OperationOutcome. ```cURL curl -X PUT -H "Content-Type: application/json" -d '{"key":"updatedValue"}' "https://api.openpractice.com/resources/{id}" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.