Skip to content

jesmg/rust-caesar-api

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Microservice exposing API endpoints for doing Caesar encryption and decryption

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages