Skip to content

Commit 79e86b1

Browse files
committed
Only exposed combined formNameSpaceAndPath
1 parent 50c14e4 commit 79e86b1

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

omod-2.2/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs2_2/DiagnosisResource2_2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
* {@link Resource} for Diagnosis, supporting standard CRUD operations
4747
*/
4848
@Resource(name = RestConstants.VERSION_1 + "/patientdiagnoses", supportedClass = Diagnosis.class, supportedOpenmrsVersions = {
49-
"2.2.* - 9.*" })
49+
"2.2.* - 2.4.*" })
5050
public class DiagnosisResource2_2 extends DataDelegatingCrudResource<Diagnosis> {
5151

5252
/**

omod-2.5/pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,21 @@
145145
<dependency>
146146
<groupId>org.openmrs.api</groupId>
147147
<artifactId>openmrs-api</artifactId>
148-
<version>${openmrs.version.2.5.0}</version><!--$NO-MVN-MAN-VER$-->
148+
<version>${openmrs.version.2.5.0}</version>
149149
</dependency>
150150

151151
<dependency>
152152
<groupId>org.openmrs.api</groupId>
153153
<artifactId>openmrs-api</artifactId>
154154
<type>test-jar</type>
155155
<scope>test</scope>
156-
<version>${openmrs.version.2.5.0}</version><!--$NO-MVN-MAN-VER$-->
156+
<version>${openmrs.version.2.5.0}</version>
157157
</dependency>
158158

159159
<dependency>
160160
<groupId>org.openmrs.web</groupId>
161161
<artifactId>openmrs-web</artifactId>
162-
<version>${openmrs.version.2.5.0}</version> <!-- $NO-MVN-MAN-VER$ -->
162+
<version>${openmrs.version.2.5.0}</version>
163163
<exclusions>
164164
<exclusion>
165165
<groupId>javax.servlet</groupId>
@@ -173,15 +173,15 @@
173173
<artifactId>openmrs-web</artifactId>
174174
<type>test-jar</type>
175175
<scope>test</scope>
176-
<version>${openmrs.version.2.5.0}</version> <!-- $NO-MVN-MAN-VER$-->
176+
<version>${openmrs.version.2.5.0}</version>
177177
</dependency>
178178

179179
<dependency>
180180
<groupId>org.openmrs.test</groupId>
181181
<artifactId>openmrs-test</artifactId>
182182
<type>pom</type>
183183
<scope>test</scope>
184-
<version>${openmrs.version.2.5.0}</version> <!-- $NO-MVN-MAN-VER$ -->
184+
<version>${openmrs.version.2.5.0}</version>
185185
</dependency>
186186

187187
<dependency>
@@ -215,5 +215,4 @@
215215
</plugin>
216216
</plugins>
217217
</build>
218-
219218
</project>

omod-2.5/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs2_5/DiagnosisResource2_5.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,12 @@ public class DiagnosisResource2_5 extends DiagnosisResource2_2 {
3333
public DelegatingResourceDescription getRepresentationDescription(Representation representation) {
3434
if (representation instanceof DefaultRepresentation) {
3535
DelegatingResourceDescription description = super.getRepresentationDescription(representation);
36-
description.addProperty("formNamespace");
37-
description.addProperty("formPath");
3836
description.addProperty("formNamespaceAndPath");
3937

4038
return description;
4139

4240
} else if (representation instanceof FullRepresentation) {
4341
DelegatingResourceDescription description = super.getRepresentationDescription(representation);
44-
description.addProperty("formNamespace");
45-
description.addProperty("formPath");
4642
description.addProperty("formNamespaceAndPath");
4743

4844
return description;
@@ -58,9 +54,7 @@ public DelegatingResourceDescription getRepresentationDescription(Representation
5854
public DelegatingResourceDescription getCreatableProperties() throws ResourceDoesNotSupportOperationException {
5955
DelegatingResourceDescription description = super.getCreatableProperties();
6056

61-
description.addRequiredProperty("formNamespace");
62-
description.addRequiredProperty("formPath");
63-
description.addProperty("formNamespaceAndPath");
57+
description.addRequiredProperty("formNamespaceAndPath");
6458

6559
return description;
6660

@@ -73,9 +67,7 @@ public DelegatingResourceDescription getCreatableProperties() throws ResourceDoe
7367
public DelegatingResourceDescription getUpdatableProperties() throws ResourceDoesNotSupportOperationException {
7468
DelegatingResourceDescription description = super.getUpdatableProperties();
7569

76-
description.addRequiredProperty("formNamespace");
77-
description.addRequiredProperty("formPath");
78-
description.addProperty("formNamespaceAndPath");
70+
description.addRequiredProperty("formNamespaceAndPath");
7971

8072
return description;
8173
}

0 commit comments

Comments
 (0)