Skip to content

Qlifyw/felicia

Repository files navigation

All Contributors License: MIT

Felicia

Felicia is an application that allows your to receive a message from from kafka topics through HTTP request.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the java Runtime Environment(JRE)

Build with

Launch

To run felicia, follow these steps:

Linux, macOS and Windows:

java -jar /path/to/app.jar

REST API

1. Subscribe

Request

POST /kafka/subscribe

Headers
Key Description
hosts Kafka hosts (ex: 10.0.20.114:9092 )
group_id Group id for consumer
topics Kafka topics you want to subscribe
login credentials (optional)
password credentials (optional)
curl --location --request POST 'http://host:port/kafka/subscribe' \
--header 'Content-Type: application/json' \
--header 'hosts: 10.0.20.114:9092' \
--header 'group_id: my-group-id' \
--header 'topics: target-topic' \
--data-raw ''

2. Find

Request

POST /kafka/find

Query Params
key Description
pattern Any part of message content from topic
Headers
Key Description
topic Topic name in which you need to find a message
timeout Timeout for search, seconds
curl --location --request POST 'http://host:port//kafka/find?pattern=id' \
--header 'Content-Type: application/json' \
--header 'topic: target-topic' \
--header 'timeout: 2' \
--data-raw ''

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages