# \#restws

**URL:** https://talk.openmrs.org/tag/restws/71.md

[Latest](https://talk.openmrs.org/latest.md) · [Categories](https://talk.openmrs.org/categories.md) · [Tags](https://talk.openmrs.org/tags.md)

---

## [Using Java 11 with webservices.rest](https://talk.openmrs.org/t/using-java-11-with-webservices-rest/43229)

<div class="topic-metadata">

**Author:** [@edison](https://talk.openmrs.org/u/edison)\
**Replies:** 14\
**Last updated:** [July 27, 2024, 6:37pm UTC](https://talk.openmrs.org/t/using-java-11-with-webservices-rest/43229 "2024-07-27T18:37:50Z")

</div>

Can I run this cd openmrs-module-webservices.rest && mvn clean install using Java 11 or it only works with Java 8. Any one to kindly help because everything seems to be failing @jwnasambu @ibacher @dkayiwa @jnsereko @jo…

---

## [Help with issue RESTWS-925: Displaying User Name with Name Template](https://talk.openmrs.org/t/help-with-issue-restws-925-displaying-user-name-with-name-template/42458)

<div class="topic-metadata">

**Author:** [@suubi7](https://talk.openmrs.org/u/suubi7)\
**Replies:** 2\
**Last updated:** [April 13, 2024, 5:52pm UTC](https://talk.openmrs.org/t/help-with-issue-restws-925-displaying-user-name-with-name-template/42458 "2024-04-13T17:52:13Z")

</div>

Hi everyone, I’m working on the issue RESTWS-925: \[RESTWS-925\] - OpenMRS Issues. I’ve identified the default name template and traced the code to the getDisplayString method in the PersonNameResource class, which seems…

---

## [REST Integration test failure](https://talk.openmrs.org/t/rest-integration-test-failure/42423)

<div class="topic-metadata">

**Author:** [@suubi7](https://talk.openmrs.org/u/suubi7)\
**Replies:** 1\
**Last updated:** [April 10, 2024, 2:02pm UTC](https://talk.openmrs.org/t/rest-integration-test-failure/42423 "2024-04-10T14:02:54Z")

</div>

Hello community I am working on this ticket \[RESTWS-925\] - OpenMRS Issues I am trying to run integration tests but I get this error. I am running core on my local server. I also have a question is there documentation…

---

## [\[ERROR\] Source option 6 is no longer supported. Use 7 or later](https://talk.openmrs.org/t/error-source-option-6-is-no-longer-supported-use-7-or-later/42387)

<div class="topic-metadata">

**Author:** [@suubi7](https://talk.openmrs.org/u/suubi7)\
**Replies:** 5\
**Last updated:** [April 6, 2024, 5:30pm UTC](https://talk.openmrs.org/t/error-source-option-6-is-no-longer-supported-use-7-or-later/42387 "2024-04-06T17:30:38Z")

</div>

I am getting an error while running mvn clean install for the web.service.rest Here is the error log. Is this a problem only on my end? \[ERROR\] Source option 6 is no longer supported. Use 7 or later. \[ERROR\] Target optio…

---

## [Adding openmrs spa module to dev3 vs migrating some of its logic to rest webservices](https://talk.openmrs.org/t/adding-openmrs-spa-module-to-dev3-vs-migrating-some-of-its-logic-to-rest-webservices/41250)

<div class="topic-metadata">

**Author:** [@jnsereko](https://talk.openmrs.org/u/jnsereko)\
**Replies:** 2\
**Last updated:** [December 29, 2023, 9:50am UTC](https://talk.openmrs.org/t/adding-openmrs-spa-module-to-dev3-vs-migrating-some-of-its-logic-to-rest-webservices/41250 "2023-12-29T09:50:51Z")

</div>

I scripted some code for adding a REST endpoint, PUT /ws/frontend/config.json in the spa module because it was created to serve all frontend assets. However, unless we add this module to distro, there will be a need of …

---

## [Diagnosis resource should return formNamespace and formPath on core 2.5+](https://talk.openmrs.org/t/diagnosis-resource-should-return-formnamespace-and-formpath-on-core-2-5/39445)

<div class="topic-metadata">

**Author:** [@suubi7](https://talk.openmrs.org/u/suubi7)\
**Replies:** 5\
**Last updated:** [May 4, 2023, 4:53am UTC](https://talk.openmrs.org/t/diagnosis-resource-should-return-formnamespace-and-formpath-on-core-2-5/39445 "2023-05-04T04:53:57Z")

</div>

Hallo community am working on this ticket Log in - OpenMRS Issues Though am a little confused are the changes to be made in core or webservices.rest code or both. The ticket seems to be for the Webservices.rest but the …

---

## [Patient list displayed based on the facility location](https://talk.openmrs.org/t/patient-list-displayed-based-on-the-facility-location/38927)

<div class="topic-metadata">

**Author:** [@alaboso](https://talk.openmrs.org/u/alaboso)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 8:46am UTC](https://talk.openmrs.org/t/patient-list-displayed-based-on-the-facility-location/38927 "2023-03-20T08:46:39Z")

</div>

Hello! Seeking ideas/suggestions/thoughts/experiences! The requirement: - Patient list in OHRI should be filtered based on the sessionLocation at the time the patient is registered. Use case: - One OpenMRS instance is…

---

## [Remove submodule 1.8 Webservices REST ModuleRESTWS-741](https://talk.openmrs.org/t/remove-submodule-1-8-webservices-rest-modulerestws-741/38689)

<div class="topic-metadata">

**Author:** [@suubi7](https://talk.openmrs.org/u/suubi7)\
**Replies:** 12\
**Last updated:** [March 1, 2023, 7:28am UTC](https://talk.openmrs.org/t/remove-submodule-1-8-webservices-rest-modulerestws-741/38689 "2023-03-01T07:28:40Z")

</div>

Hallo guys I am working on this ticket Log in - OpenMRS Issues. I was able to remove the submodule and created similar classes in the submodule 1.9 also shifted some code to some classes in the 1.9 module because it was …

---

## [Cryptic errors from REST API](https://talk.openmrs.org/t/cryptic-errors-from-rest-api/37418)

<div class="topic-metadata">

**Author:** [@cornelmasson](https://talk.openmrs.org/u/cornelmasson)\
**Replies:** 10\
**Last updated:** [September 20, 2022, 7:02am UTC](https://talk.openmrs.org/t/cryptic-errors-from-rest-api/37418 "2022-09-20T07:02:35Z")

</div>

I’m using reference app 12.2, posting new encounters for the first time. Whenever there is a validation error, OpenMRS just returns a very cryptic message like: Request processing failed; nested exception is org.openmrs…

---

## [Query All Patients Using REST API](https://talk.openmrs.org/t/query-all-patients-using-rest-api/21765)

<div class="topic-metadata">

**Author:** [@mattsichterman](https://talk.openmrs.org/u/mattsichterman)\
**Replies:** 8\
**Last updated:** [August 8, 2022, 11:24pm UTC](https://talk.openmrs.org/t/query-all-patients-using-rest-api/21765 "2022-08-08T23:24:05Z")

</div>

Hello. I am wondering if there is a way to fetch all patients in a database using the rest connection in my module. Any help is appreciated!

---

## [Release of REST WS 2.33.0](https://talk.openmrs.org/t/release-of-rest-ws-2-33-0/35184)

<div class="topic-metadata">

**Author:** [@mksd](https://talk.openmrs.org/u/mksd)\
**Replies:** 5\
**Last updated:** [November 22, 2021, 7:38pm UTC](https://talk.openmrs.org/t/release-of-rest-ws-2-33-0/35184 "2021-11-22T19:38:42Z")

</div>

Hi all, Hooking up the recent committers to see if everyone is cool with releasing REST WS v2.33.0, @dkayiwa, @kdaud, @saurabh, @jonathan? And I see that @ibacher had set 2.33.0 as the fix version for RESTWS-859 @…

---

## [Test Coverage for our REST API](https://talk.openmrs.org/t/test-coverage-for-our-rest-api/34671)

<div class="topic-metadata">

**Author:** [@grace](https://talk.openmrs.org/u/grace)\
**Replies:** 31\
**Last updated:** [November 22, 2021, 2:21pm UTC](https://talk.openmrs.org/t/test-coverage-for-our-rest-api/34671 "2021-11-22T14:21:17Z")

</div>

This week, the topic of REST API Test Coverage was raised in both the PM Team and QA Support Team calls. Key Concerns: Historically, doing manual tests of our REST API delays our Platform releases (example of manual t…

---

## [No serializer found for class org.springframework.validation.DefaultMessageCodesResolver](https://talk.openmrs.org/t/no-serializer-found-for-class-org-springframework-validation-defaultmessagecodesresolver/35089)

<div class="topic-metadata">

**Author:** [@jonathan](https://talk.openmrs.org/u/jonathan)\
**Replies:** 4\
**Last updated:** [November 11, 2021, 10:38am UTC](https://talk.openmrs.org/t/no-serializer-found-for-class-org-springframework-validation-defaultmessagecodesresolver/35089 "2021-11-11T10:38:19Z")

</div>

Hello While working on \[RESTWS-856\] End Point: Concept Attribute Types create Test - OpenMRS Issues … using Postman with /openmrs/ws/rest/v1/conceptattributetype throws Error …Its does not create the conceptattributetyp…

---

## [\[ RESOLVED \] org.openmrs.module.webservices.rest.web.response.ConversionException thrown](https://talk.openmrs.org/t/resolved-org-openmrs-module-webservices-rest-web-response-conversionexception-thrown/35029)

<div class="topic-metadata">

**Author:** [@jonathan](https://talk.openmrs.org/u/jonathan)\
**Replies:** 5\
**Last updated:** [November 5, 2021, 1:33pm UTC](https://talk.openmrs.org/t/resolved-org-openmrs-module-webservices-rest-web-response-conversionexception-thrown/35029 "2021-11-05T13:33:21Z")

</div>

Hello Everyone Am working on RESTWS-861 ConceptComplex conceptComplex = newConceptComplex(); String json = "{\\"concept\\":\\""+ conceptComplex.getUuid() +"\\"," + "\\"person\\":\\"5946f880-b197-400b-9caa-a…

---

## [\[REST/WS\] POSTing obsgroup via rest throws serialization error](https://talk.openmrs.org/t/rest-ws-posting-obsgroup-via-rest-throws-serialization-error/34827)

<div class="topic-metadata">

**Author:** [@samuel34](https://talk.openmrs.org/u/samuel34)\
**Replies:** 7\
**Last updated:** [October 12, 2021, 7:31pm UTC](https://talk.openmrs.org/t/rest-ws-posting-obsgroup-via-rest-throws-serialization-error/34827 "2021-10-12T19:31:03Z")

</div>

Hi, I get a funny error whenever I try POSTing an encounter with an obsGroup via rest. Below is a demo request body: { "patient": "76761b1f-729b-45c9-82e1-f4a8eee1957a", "encounterDatetime": "2021-10-08T10:08:4…

---

## [AppointmentScheduling JSON Pay Load Unclear](https://talk.openmrs.org/t/appointmentscheduling-json-pay-load-unclear/33972)

<div class="topic-metadata">

**Author:** [@tendomart](https://talk.openmrs.org/u/tendomart)\
**Replies:** 2\
**Last updated:** [July 9, 2021, 10:39am UTC](https://talk.openmrs.org/t/appointmentscheduling-json-pay-load-unclear/33972 "2021-07-09T10:39:48Z")

</div>

Hi All am trying to create a Graphql spring-boot gateway to speak with openmrs rest based Appointment Scheduling Module and do some business. But i have not found clear examples of JSON pay load for any of the HTTP v…

---

## [API Authenticatoin always false](https://talk.openmrs.org/t/api-authenticatoin-always-false/33889)

<div class="topic-metadata">

**Author:** [@christoforos](https://talk.openmrs.org/u/christoforos)\
**Replies:** 1\
**Last updated:** [June 27, 2021, 6:30pm UTC](https://talk.openmrs.org/t/api-authenticatoin-always-false/33889 "2021-06-27T18:30:48Z")

</div>

Reference Application 2.11.0 Hello I am trying to authenticate through api call. I follow the guide and I make this call: OkHttpClient client = new OkHttpClient().newBuilder().build(); Request request = new Re…

---

## [Should REST Resource return Message key or its value?](https://talk.openmrs.org/t/should-rest-resource-return-message-key-or-its-value/33870)

<div class="topic-metadata">

**Author:** [@navareth](https://talk.openmrs.org/u/navareth)\
**Replies:** 0\
**Last updated:** [June 25, 2021, 12:12pm UTC](https://talk.openmrs.org/t/should-rest-resource-return-message-key-or-its-value/33870 "2021-06-25T12:12:47Z")

</div>

Hi everyone. I’m working on the following task: https://issues.openmrs.org/browse/RESTWS-821 It consists of adding a new REST Resource that will return a map of administration links for installed modules. The map looks…

---

## [Exception in WebServices REST MainResourceController](https://talk.openmrs.org/t/exception-in-webservices-rest-mainresourcecontroller/33373)

<div class="topic-metadata">

**Author:** [@alaboso](https://talk.openmrs.org/u/alaboso)\
**Replies:** 13\
**Last updated:** [May 10, 2021, 6:33pm UTC](https://talk.openmrs.org/t/exception-in-webservices-rest-mainresourcecontroller/33373 "2021-05-10T18:33:49Z")

</div>

Distro Reference Application branch - 3.x https://github.com/openmrs/openmrs-distro-referenceapplication/tree/3.x I have deployed the refapp branch-3.x successfullly, however, while POST’ing to the URL to create a pati…

---

## [Rest Service in Appointment block](https://talk.openmrs.org/t/rest-service-in-appointment-block/32556)

<div class="topic-metadata">

**Author:** [@vishi](https://talk.openmrs.org/u/vishi)\
**Replies:** 8\
**Last updated:** [March 16, 2021, 7:34am UTC](https://talk.openmrs.org/t/rest-service-in-appointment-block/32556 "2021-03-16T07:34:58Z")

</div>

For Appointmnet module custom data fetch from rest services is not working properly. It works properly for all the fields except countOfAppointments and unallocatedMinutes. Whenever any of these two fields is added it g…

---

## [How can we create new REST API](https://talk.openmrs.org/t/how-can-we-create-new-rest-api/32433)

<div class="topic-metadata">

**Author:** [@narukumar](https://talk.openmrs.org/u/narukumar)\
**Replies:** 12\
**Last updated:** [March 4, 2021, 7:50am UTC](https://talk.openmrs.org/t/how-can-we-create-new-rest-api/32433 "2021-03-04T07:50:45Z")

</div>

I have created a local setup of openmrs enterprise v 2.3.2 I have created a new table in openmrs db, and want to retrive all data on basis of uuid by an REST API. I want to create a new controller and service that will u…

---

## [HTML Form Entry Module and REST](https://talk.openmrs.org/t/html-form-entry-module-and-rest/11471)

<div class="topic-metadata">

**Author:** [@sukavi](https://talk.openmrs.org/u/sukavi)\
**Replies:** 30\
**Last updated:** [January 20, 2021, 4:47am UTC](https://talk.openmrs.org/t/html-form-entry-module-and-rest/11471 "2021-01-20T04:47:57Z")

</div>

How can I populate the fields in a form created using the html form entry module by REST web services?

---

## [REST Implementation for Scheduler in Legacy UI Module](https://talk.openmrs.org/t/rest-implementation-for-scheduler-in-legacy-ui-module/12801)

<div class="topic-metadata">

**Author:** [@suthagar23](https://talk.openmrs.org/u/suthagar23)\
**Replies:** 16\
**Last updated:** [December 11, 2020, 7:31am UTC](https://talk.openmrs.org/t/rest-implementation-for-scheduler-in-legacy-ui-module/12801 "2020-12-11T07:31:42Z")

</div>

I am working on RESTWS-674 ticket to implement REST for Scheduler in LegacyUI module. In the dashboard, Scheduler contains a list of task definitions. Here I wanted to follow two classes from OpenMRS Core Schedule.j…

---

## [Webservice to create user and provider together?](https://talk.openmrs.org/t/webservice-to-create-user-and-provider-together/30577)

<div class="topic-metadata">

**Author:** [@jramirez](https://talk.openmrs.org/u/jramirez)\
**Replies:** 0\
**Last updated:** [October 16, 2020, 4:34am UTC](https://talk.openmrs.org/t/webservice-to-create-user-and-provider-together/30577 "2020-10-16T04:34:08Z")

</div>

Hi, a question i am using rest api, is there a web service that creates the doctor type user and provider in a single service?

---

## [Mismatch between the REST API Swagger and Manual Documentation - which is which](https://talk.openmrs.org/t/mismatch-between-the-rest-api-swagger-and-manual-documentation-which-is-which/29949)

<div class="topic-metadata">

**Author:** [@ssmusoke](https://talk.openmrs.org/u/ssmusoke)\
**Replies:** 13\
**Last updated:** [August 27, 2020, 5:44am UTC](https://talk.openmrs.org/t/mismatch-between-the-rest-api-swagger-and-manual-documentation-which-is-which/29949 "2020-08-27T05:44:38Z")

</div>

I am having a hard time correlating which documentation is correct and which one should be followed. For example when creating an encounter the bundled documentation in OpenMRS shows this { "patient": { "person":…

---

## [\[SOLVED\] Enhancement - Web Services Rest - Link Provider to Person Resource](https://talk.openmrs.org/t/solved-enhancement-web-services-rest-link-provider-to-person-resource/29913)

<div class="topic-metadata">

**Author:** [@ssmusoke](https://talk.openmrs.org/u/ssmusoke)\
**Replies:** 4\
**Last updated:** [August 19, 2020, 5:04pm UTC](https://talk.openmrs.org/t/solved-enhancement-web-services-rest-link-provider-to-person-resource/29913 "2020-08-19T17:04:53Z")

</div>

As part of using the REST end-point, we are interested in returning some of the provider details for a user who has logged in (all our users have the provider attribute set) From looking at the code, it seems that the P…

---

## [Adding diagnosis for a Patient using Rest API.](https://talk.openmrs.org/t/adding-diagnosis-for-a-patient-using-rest-api/17081)

<div class="topic-metadata">

**Author:** [@naveed1228](https://talk.openmrs.org/u/naveed1228)\
**Replies:** 15\
**Last updated:** [August 16, 2020, 7:18pm UTC](https://talk.openmrs.org/t/adding-diagnosis-for-a-patient-using-rest-api/17081 "2020-08-16T19:18:10Z")

</div>

I want to add diagnosis for a Patient during encounter.What will be the payload/Object in this case.I have the idea how to add observation during encounter.But I am not able to understand how to add diagnosis for a patie…

---

## [RESTWS: REST endpoint for getting AutoGenerationOptions of an IdentifierType](https://talk.openmrs.org/t/restws-rest-endpoint-for-getting-autogenerationoptions-of-an-identifiertype/29844)

<div class="topic-metadata">

**Author:** [@samuel34](https://talk.openmrs.org/u/samuel34)\
**Replies:** 2\
**Last updated:** [August 12, 2020, 10:30pm UTC](https://talk.openmrs.org/t/restws-rest-endpoint-for-getting-autogenerationoptions-of-an-identifiertype/29844 "2020-08-12T22:30:19Z")

</div>

Extending discussion from RESTWS: REST endpoint for primary and extra patient identifier types (Thanks to @dkayiwa that pointed us to the working solution) I’m working on MF-218. A brief summary of what it’s about:- Usi…

---

## [RESTWS: REST endpoint for primary and extra patient identifier types](https://talk.openmrs.org/t/restws-rest-endpoint-for-primary-and-extra-patient-identifier-types/29504)

<div class="topic-metadata">

**Author:** [@samuel34](https://talk.openmrs.org/u/samuel34)\
**Replies:** 7\
**Last updated:** [July 28, 2020, 9:27pm UTC](https://talk.openmrs.org/t/restws-rest-endpoint-for-primary-and-extra-patient-identifier-types/29504 "2020-07-28T21:27:50Z")

</div>

Hi all, I’m working on MF-217-(Adding support for recording of patient identifiers to openmrs-esm-patient-registration). We however require two or more endpoints ie:- An endpoint to fetch the primary patient identifie…

---

## [org.openmrs.api.APIException: Editing some fields on Obs is not allowed](https://talk.openmrs.org/t/org-openmrs-api-apiexception-editing-some-fields-on-obs-is-not-allowed/8307)

<div class="topic-metadata">

**Author:** [@mksd](https://talk.openmrs.org/u/mksd)\
**Replies:** 49\
**Last updated:** [July 15, 2020, 4:34pm UTC](https://talk.openmrs.org/t/org-openmrs-api-apiexception-editing-some-fields-on-obs-is-not-allowed/8307 "2020-07-15T16:34:53Z")

</div>

Hi all, While making VDUI Platform 2.x-compatible, I am stumbling upon this when saving an existing complex obs via REST: ERROR - BaseRestController.handleException(115) |2016-10-07 19:58:46,756| Editing some field…

[Next page](https://talk.openmrs.org/tag/restws/71.md?match_all_tags=true&page=1&tags%5B%5D=restws)
