Get the latest tech news

Trivial REST server in various languages to compare


A simple HTTP REST API server in different languages - begoon/http-server

The/version endpoint returns a RESTful JSON response with the "version" fields. The payload should be serialized to JSON from a struct or class, not printed as a simple string. When the server runs, it should respond to curl http://localhost:8000/version or in the web browser.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of languages

languages

Photo of Trivial REST server

Trivial REST server

Related news:

News photo

Languages ... by finite semigroups [generalised to] trees and graphs (2020)[pdf]

News photo

Mistral AI takes on OpenAI with new moderation API, tackling harmful content in 11 languages

News photo

Crux, a Precise Verifier for Rust and Other Languages