...
Code Block |
---|
title | main pom.xml file additions |
---|
|
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>webservices.rest-api</artifactId>
<version>1.0</version>
<type>provided</type>
</dependency>
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>webservices.rest</artifactId>
<version>1.0</version>
<type>provided</type>
</dependency>
|
Code Block |
---|
title | omod project pom.xml file additions |
---|
|
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>webservices.rest-api</artifactId>
<version>1.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>webservices.rest</artifactId>
<version>1.0</version>
<type>jar</type>
</dependency>
|
...
The documentation on how to create methods is the same as for the core developers. See that page for more information.
The only difference is that on your controller you will use
Code Block |
---|
@RequestMapping(value = "/rest/yourmoduleid/yourobjectid")
|