Login API
<host>/v1/login
List all products
GET - <host>/v1/products
Get latest product
GET - <host>/v1/products/latest
List indexes
GET - <host>/v1/products/indexes
Create an index
POST - <host>/v1/products/indexes?field=column
where column
is column name
List Topics
GET - <host>/v1/kafka/topics
Create topic
POST - <host>/v1/kafka/topics/<name>
where <name>
is topic name
Publish message
POST - <host>/v1/kafka/topics/<name>/publish
where <name>
is topic name
Get latest message in a topic
GET - <host>/v1/kafka/topics/<name>/latest
- make
- docker-compose 2.15.1
- python
- golang 1.20
make test
Export the following environment variables
export SECRET_USER=admin
export SECRET_PASSWORD=pass
export SECRET_KEY=abcd
export MONGO_USER=mongo_write
export MONGO_PASSWORD=write1243omf9dnsO
With docker-compose
make run
All examples can be found in scripts
folder.