Hi,
I set up a server using the openmrs-sdk. I am currently working on the platformui open web application. However, when I make a GET request to log in at /openmrs/ws/rest/v1/session with an Authorization header containing the username and password, I get a 400 Bad request response. The same platformui application works as expected when I installed it in the standalone version. This is the error response:
I am making a GET http request to /openmrs/ws/rest/v1/session.
Username: admin
Password: Admin123
Authorization code is a base64 code of the username and password.
Nothing is logged on making the request both in the openmrs.log file in the server directory and the console where I started the server from. I don’t know if there is another place where such actions are logged.
I don’t understand what you mean by that. I already have 2 instances. A server running 2.1.3 and another one running the snapshot version (2.2.0-SNAPSHOT). I know I can replace omods and owa however, I don’t know how to replace the version platform version itself. I usually setup a new instance when I want a different version of the platform.
After a call with @dkayiwa, we realised I was running an old version of the web services rest module. Version 2.21.0. Installed a newer version 2.23.0-SNAPSHOT and it worked like a charm. However, you can always get the latest release from this link: https://addons.openmrs.org/show/org.openmrs.module.webservices-rest.