Skip to content

ebar0n/microservice-qr-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microservice-qr-codes

Installation

# Build
docker-compose build

# Start
docker-compose run --rm --service-ports api bash

# Run server 8000
cargo watch -x run

Start server

docker-compose up -d api

Test

cargo fmt

# Execute code style
cargo +nightly fmt

# Execute check code style
cargo +nightly fmt --all -- --check

cargo test

# Execute test
cargo test

Documentación

Health check

curl -i -X GET "http://127.0.0.1:8000/health/"

{"health":"Ok","agent":"[agent]","created_at":"[time]","version":"0.0.1"}

Generate QR

curl -i -X GET "http://127.0.0.1:8000/api/v1/generate/?message=hello+wold"

{"url":"/static/[token].png","message":""}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published