Skip to content
/ server Public

API layer converting model from/to Camel K model

Notifications You must be signed in to change notification settings

fusejw/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jabberwocky API Adapter Layer

This code generated server exposes the REST API contract that is expected to be used by a UI for managing Connectors, Channels and Event Source/Sinks.

The business logic will be provided by Camel-K.

Prerequisites

You will need to connect to a Kubernetes cluster (also Minikube is fine) where Camel K operator version 1.2 is installed. For the time being this project is supporting also Strimzi Kafka to use the topics as Channels.

How to run locally

Build the executable:

go build cmd/server/main.go

Make sure your Kubernetes cluster is up and running (ie, Minikube), then, launch the local server:

go run cmd/server/main.go

Test the application browsing the API:

$ http http://localhost:8080/v0/connector

[
    {
        "configuration": "some yaml configuration here!",
        "name": "my-connector-1",
        "type": "source"
    },
    {
        "configuration": "some yaml configuration here!",
        "name": "my-connector-2",
        "type": "sink"
    }
]

How to install in a cluster

The above instruction is useful if you're intend to develop the application. If you want to just install and run on your cluster, please follow the related instruction.

Caveat

The project is still in prototype phase, structure and dependencies may change.

About

API layer converting model from/to Camel K model

Resources

Stars

Watchers

Forks

Packages

No packages published