Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlemain 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
titleomod 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")