/tc-apicurio-quickstart

Quick setup to test Apicurio and AsyncAPI

Primary LanguageShell

Quickstart Apicurio & AsyncAPI

This repository contains a quickstart setup to test Apicurio Registry and AsyncAPI. It simply starts a Docker container for Apicuiro and deploys several AsyncAPI examples as artifacts.

Prerequisites

  • Installed Docker and Docker-Compose.

  • A Linux-based operating system is needed to execute the setup script.

Steps

1) Start Apicurio Registry:

docker-compose up -d

2) Wait a few seconds until Apicurio is running. Deploy the artifacts:

./artifacts.sh

2) Navigate to http://localhost:8080 in your browser.


If you want to deploy additional artifacts, you can either use the command line or the user interface of Apicurio:

curl -X POST -H "Content-type: application/json; artifactType=ASYNCAPI" -H "X-Registry-ArtifactId: my-artifact-id" --data-binary "@./your/path/to/artifact.json" http://localhost:8080/api/artifacts

The example files can be found at the ./resources directory and are mainly publicly available. Some of them were modified to showcase additional features of AsyncAPI. Other example files can be found at AsyncAPI’s Github repository.