how to Connect REST API to an owa

Hi everyone,

Please How can I connect the concept REST API to my OWA. Am having difficulty doing so. Please any suggestions.

Have you tried using AJAX to read REST API end points?? eg

`    $.getJSON( ` `"manifest.webapp"` `, ` `function` `( json ) {`

    `    ` `var`   `apiBaseUrl = json.activities.openmrs.href + ` `"/ws/rest/v1"` `;`

`} );`

take a look at this

Thanks @mozzy

@mozzy do we have any link that also have well detailed documentation about using the rest api into openmrs , seems the rest api documentation on wiki is not well documented

https://wiki.openmrs.org/display/docs/Adding+a+Web+Service+Step+by+Step+Guide+for+Core+Developers

@mozzy thanks

1 Like