Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.79 KB

QuickStart.md

File metadata and controls

29 lines (15 loc) · 1.79 KB

Quick Start Guide

To get started with the AsyncAPI Toolkit, simply use the dedicated wizard in the New Project dialog:

New Project Wizard - Step 1

Select AsyncAPI Project, set a project name, and continue.

New Project Wizard - Step 2

After that, select a project template. We recommend you to start with the Streetlights API Example Project. The Streetlights API Example Project template contains a fully working example demonstrating the capabilities of the framework.

New Project Wizard - Step 3

Finally, the wizard can be completed.

New Project Wizard - Step 4

After that, a new Maven project with the following contents will appear in the workspace.

Streetlights API Project Contents

Pay special attention to the following files:

  • src/main/java/streetlights/StreetlightsAPI.asyncapi is an example specification (see below) of an API using the JSON format of the AsyncAPI specification. Code and other resourcs in the gen directory will be generated from the specification contained in this file.

  • src/main/java/main/MainExample.java is an example program demonstrating how to use the generated code, which provides an internal DSL based on fluent APIs to generate messages, and to publish and subscribe them.

  • src/test/java/main/TestMainExample.java is an example test suite that uses an embedded MQTT server to show how the MainExample.java class can be executed.