asyncapi

command
v0.0.0-...-eb6ac32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

AsyncAPI Service

Overview

The AsyncAPI Service is an HTTP server used to process AsyncAPI specifications. It contains the /validate and /convert HTTP endpoints which accept multipart/form-data forms:

  • The /validate endpoint validates the AsyncAPI specification against the AsyncAPI schema in version 2.0.0., using the AsyncAPI Parser.
  • The /convert endpoint converts the version and format of the AsyncAPI files.

This service uses the AsyncAPI Converter to change the AsyncAPI specifications from older versions to version 2.0.0, and convert any YAML input files to the JSON format that is required to render the specifications in the Console UI.

Prerequisites

Use the following tools to set up the service:

Usage

Read how to run and use the service.

API

See the OpenAPI specification for the full API documentation. You can use the Swagger Editor to preview and test the API service.

Run from sources

To run the local version of the AsyncAPI Service without building the binary, use this command:

go run cmd/extension/asyncapi/main.go

The service listens on port 3000.

Build a production version

To build the production Docker image, use this command:

make build-asyncapi
Environment variables

Use these environment variables to configure the service:

Name Required Default Description
APP_SERVICE_PORT No 3000 Port on which the HTTP server listens
APP_SERVICE_HOST No 127.0.0.1 Host on which the HTTP server listens
APP_VERBOSE No false Toggle used to enable detailed logs in the service

Development

There is a unified way of testing all changes in Rafter components. For details on how to run unit, integration, and MinIO Gateway tests, read this development guide.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL