com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Writing Device APIs
The following subsections explain how to write and secure device APIs:
Create a JAXRS web application for APIs.Â
For more information, see the JAXRS implementation for APIs in Raspberry Pi.
Annotate the web app with the name and context, so that all the APIs of a device are grouped and can be identified instantly.
Example: All the APIs will be grouped under raspberryPi@SwaggerDefinition( info = @Info( version = "1.0.0", title = "", extensions = { @Extension(properties = { @ExtensionProperty(name = "name", value = "raspberrypi"), @ExtensionProperty(name = "context", value = "/raspberrypi"), }) } ), tags = { @Tag(name = "raspberrypi", description = "") }
Annotate the APIs using the swagger annotations. Â For more information on swagger annotations, see Annotations-1.5.X.Â
Example:@Path("device/{deviceId}/bulb") @POST @Scope(key = "device:raspberrypi:enroll", name = "", description = "") Response switchBulb(@PathParam("deviceId") String deviceId, @QueryParam("state") String state);
The resources used by external entities can be secured with WSO2 API Manager by including specific XML elements to the
web.xml
 file of the web application that implements the APIs.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.