Add Custom Endpoint
You can add new, custom endpoint with your own plugin.
To do that, in your plugin:
- Create resource classes for your endpoints using JAX-RS annotations (
@Path
,@GET
,@POST
, etc). - Create an OSGi component that implements the
ResourceExtension
interface (@Component(service = ResourceExtension.class, immediate = true)
). - Override the
getResourceClasses()
method and return the set of resource classes that you have created.