Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 682 Bytes

File metadata and controls

27 lines (19 loc) · 682 Bytes

A Simple Echo Server

A simple server that just returns the payload that was sent to it. Currently only JSON requests are supported.

The server is written in Rust.

Prerequisites

You need to have Rust and its package manager Cargo installed.

Development

To install required dependencies, run

cargo update

Then you start the server by running

cargo run

Testing

To test the server, post a JSON payload to the route defined in the code. You can use the provided test JSON file with e.g. Curl:

curl -X POST -H "Content-Type: application/json" -d "@test.json"  http://localhost:8000/echo/json