Nano-badges is an endpoint to create dinamic badges based on a query. It uses MAUI to create the graphics.
Once downloaded and built, you can start the traditional Kestrel server with:
dotnet NanoBadges.dll [port]
...Where port is the desired port where you want to expose the endpoint.
The main endpoint has the following signature:
protocol+ip+port/nano-badge/{value?}/{title?}/{value-background?}/{title-background?}/{font-name?}
Where:
- value : The text of the badge.
- title : The title of the badge.
- value-background : The background color of the badge value.
- title-background : The background color of the badge title.
- font-name : The name of the font to use.
The valid colors are:
- red
- orange
- orange-red
- green
- blue
- mustard
- gray
- black
value | title | value-background | title-background | font-name | result |
---|---|---|---|---|---|
34 | Quantity | red | gray | candara | |
1.0.0 [beta] | version_number | gray | blue | arial | |
default |