Skip to content

codeRookieErick/nano-badges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nano-badges

Nano-badges is an endpoint to create dinamic badges based on a query. It uses MAUI to create the graphics.

Usage

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.

Endpoints

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:

  1. red
  2. orange
  3. orange-red
  4. green
  5. blue
  6. mustard
  7. gray
  8. black

Examples

value title value-background title-background font-name result
34 Quantity red gray candara
1.0.0 [beta] version_number gray blue arial
default

About

Badges generator endpoint with MAUI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages