# Rest api with openemr integration database update failed

**URL:** <https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353>\
**Category:** Management and Administration\
**Created:** [June 17, 2015, 12:39pm UTC](https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353 "2015-06-17T12:39:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 17, 2015, 12:39pm UTC](https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353/1 "2015-06-17T12:39:02Z")

</div>

**[ashutoshw007](https://sourceforge.net/u/ashutoshw007/)** wrote on [Wednesday, June 17, 2015](https://sourceforge.net/p/openemr/discussion/202505/thread/25037cb9/#8f71):

Hi,

I found the rest api for openemr on github.  
I referred the instructions and “how to” given in the webmaster.pdf along with the zip.  
After making changes when I tried to update my database and got error as “Database update failed”.  
Any help appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 17, 2015, 3:35pm UTC](https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353/2 "2015-06-17T15:35:06Z")

</div>

**[fsgl](https://sourceforge.net/u/fsgl/)** wrote on [Wednesday, June 17, 2015](https://sourceforge.net/p/openemr/discussion/202505/thread/25037cb9/#3eb7):

See [this](http://www.open-emr.org/wiki/index.php/Active_Projects#Upgrading).

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 18, 2015, 12:18pm UTC](https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353/3 "2015-06-18T12:18:32Z")

</div>

**[ashutoshw007](https://sourceforge.net/u/ashutoshw007/)** wrote on [Thursday, June 18, 2015](https://sourceforge.net/p/openemr/discussion/202505/thread/25037cb9/#97a9):

Hey thanks fsgl, I am able to update it now.  
But while trying to access the login page  
e.g my-openemr-url/openemr/medmasterproapi/login.php, I do not get any login page, and if I hit the below url…  
my-openemr-url/openemr/medmasterproapi/login.php?auth=login&site=default  
I got this error as username/password incorrect

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 18, 2015, 12:59pm UTC](https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353/4 "2015-06-18T12:59:49Z")

</div>

**[fsgl](https://sourceforge.net/u/fsgl/)** wrote on [Thursday, June 18, 2015](https://sourceforge.net/p/openemr/discussion/202505/thread/25037cb9/#c821):

Did you follow [Step 4](http://www.open-emr.org/wiki/index.php/Linux_Upgrade_4.1.2_to_4.2.0) before upgrading?

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 23, 2015, 7:20am UTC](https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353/5 "2015-06-23T07:20:43Z")

</div>

**[ashutoshw007](https://sourceforge.net/u/ashutoshw007/)** wrote on [Tuesday, June 23, 2015](https://sourceforge.net/p/openemr/discussion/202505/thread/25037cb9/#afc9):

Hi fsgl,  
I appreciate your help, but I suspect you have not got my scenario.  
I am trying to use medmasters restfulapi for openemr.  
Please check this link [GitHub - oemr501c3/openemr-api: Prototype API for OpenEMR - Contributed by Med Master Mobile. LLC to OEMR](https://github.com/oemr501c3/openemr-api)  
There is a documentation provided for the same.  
I have referred it but stuck at a point.  
Could you please check and help me.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 23, 2015, 7:30pm UTC](https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353/6 "2015-06-23T19:30:25Z")

</div>

**[fsgl](https://sourceforge.net/u/fsgl/)** wrote on [Tuesday, June 23, 2015](https://sourceforge.net/p/openemr/discussion/202505/thread/25037cb9/#898d):

Would suggest that you email Bikash from his [profile page](https://sourceforge.net/u/bikash4mgrmtech/profile/).

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [June 24, 2015, 4:46am UTC](https://community.open-emr.org/t/rest-api-with-openemr-integration-database-update-failed/353/7 "2015-06-24T04:46:42Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Wednesday, June 24, 2015](https://sourceforge.net/p/openemr/discussion/202505/thread/25037cb9/#f938):

Hi,

Getting this project integrated into OpenEMR got sidetracked bu Meaningful Use. Some details on it can be found here:  
[http://www.open-emr.org/wiki/index.php/Medmasterpro\_API\_Review#Overview](http://www.open-emr.org/wiki/index.php/Medmasterpro_API_Review#Overview)

There was a new more secure mechanism brought into OpenEMR that would need to be worked into the code for it to work on more recent OpenEMR versions:

> <https://github.com/openemr/openemr/commit/c9a5aa413928a6666fce4d3f48e0285b5455b1ae>
>
> Upgrade password storage from SHA1 to Blowfish with salts for both users
> and ons…ite portal users
> Move user passwords to separate table (users\_secure)
> Backwards compatability changes for systems that without support for
> CRYPT\_BLOWFISH. SHA1 + SALT is used instead
> Implementation of Optional privileged database user + HOWTO documentation

(note there’s been more refinement on this in OpenEMR since that commit, but in that commit, it gives you a gist of authentication changes that need to be made in the api)

-brady  
[OpenEMR](http://www.open-emr.org/)
