Read and write data
After we've completed setting up the object classes and their properties , we are ready to start reading and writing data in the format we just specified. More specifically, we'll create instances of the Prescription class in the Medable cloud.
The following examples use HTTP. This is most applicable for web development. You might issue these HTTP requests using a tool like Fetch or Ajax. If you're doing iOS or Android development, we wrote SDK's that make it easier for you to interact with these endpoints.
Create
Creating prescriptions is a simple matter of a POST
request to the object route.
POST https://api.dev.medable.com/{{your_org_name}}/v2/c_prescriptions
Following this process using the WAPI would look like this:

Get Many
To get that prescription we just created back, we can simply do a GET
request.
GET https://api.dev.medable.com/{{your_org_name}}/v2/c_prescriptions
Get One
Or to get a specific Prescription we can do the following GET
request.
GET https://api.dev.medable.com/{{your_org_name}}/v2/c_prescriptions/{{object_id}}
Last updated
Was this helpful?