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.
- Host: GitHub
- URL: https://github.com/leomosley/github-language-color-api
- Owner: leomosley
- Created: 2024-03-14T18:55:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T19:04:20.000Z (over 2 years ago)
- Last Synced: 2025-12-03T08:50:29.569Z (7 months ago)
- Topics: api, colors, github, languages, rust, shuttle
- Language: Rust
- Homepage: https://github-language-color.shuttleapp.rs/
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```