An open API service indexing awesome lists of open source software.

https://github.com/leomosley/github-language-color-api

A simple Rust API to get the colour which github uses to represent a language.
https://github.com/leomosley/github-language-color-api

api colors github languages rust shuttle

Last synced: about 2 months ago
JSON representation

A simple Rust API to get the colour which github uses to represent a language.

Awesome Lists containing this project

README

          

# Github Language Color REST API
This project is a REST API built with Axum, a web framework for Rust based on Tokio and Tower. It provides a simple example of how to create a RESTful service using Axum, including routing, handling JSON requests, managing state, middleware, and more.

## Description
This REST API allows users to retrieve the color associated with a programming language. It provides endpoints for fetching the color of a specific programming language, as well as a general endpoint for usage instructions.

## Usage
To retrieve the color for a programming language, make a GET request to /language, where language is the name of the programming language. For example:
```console
curl https://github-language-color.shuttleapp.rs/rust
```