Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 585 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 585 Bytes

Caesar encrypt/decrypt API

Microservice exposing API endpoints for doing Caesar encryption and decryption.

This is my first program written in Rust :)

How to run it

Set the Rust nightly build for this repo: rustup override set nightly. Launch with cargo run or compile with cargo build.

Endpoints

  • POST /caesar/decrypt expecting a body like:
    {
        "secret": "abyz",
        "shift": 25
    }
    
  • POST /caesar/encrypt expecting a body like:
    {
        "secret": "abyz",
        "shift": 25
    }
    
  • GET /liveness