Exposing services and data entities as REST APIs

So far, we have seen various REST APIs to perform different operations in JIRA. What about operations that are not supported by REST? That little something which prevents you from integrating JIRA with your third-party app? That is where the REST plugin module type comes handy. Using the REST plugin module, services or data can be exposed to the outside world.

In this recipe, we will see how to expose the getProjectCategories method we have used as examples in the previous recipes using the REST interface.

Getting ready

Create a skeleton plugin using the Atlassian plugin SDK.

How to do it...

The following is a step-by-step procedure to create a REST plugin to expose the getProjectCategories method:

Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.