...
See Requiring another module in your module
Ideally by the time you are reading this the restws module has been uploaded into OpenMRS's maven repository and you can simply You will need to check out the webservices.rest project and mvn clean install it to make it available to your module project. You will also need to add a few dependencies in your module's pom.xml files:
Code Block | ||
---|---|---|
| ||
<dependency> <groupId>org.openmrs.module</groupId> <artifactId>webservices.rest-api</artifactId> <version>1<version>0.0<9-SNAPSHOT</version> <type>provided</type> </dependency> <dependency> <groupId>org.openmrs.module</groupId> <artifactId>webservices.rest<rest-omod</artifactId> <version>1<version>0.0<9-SNAPSHOT</version> <type>provided</type> </dependency> |
Code Block | ||
---|---|---|
| ||
<dependency> <groupId>org.openmrs.module</groupId> <artifactId>webservices.rest-api</artifactId> <version>1<version>0.0<9-SNAPSHOT</version> <type>jar</type> </dependency> <dependency> <groupId>org.openmrs.module</groupId> <artifactId>webservices.rest<rest-omod</artifactId> <version>1<version>0.0<9-SNAPSHOT</version> <type>jar</type> </dependency> |
Note that some of the controller dependencies (e.g. BaseCrudController) are now part of package org.openmrs.module.webservices.rest.web.v1_0.controller.
Adding new Web Service URLs
...