Skip to content

ilasorsa/a-first-business-microservice-lp-author

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A microservice for sales tax rate lookup

Build

cargo build --target wasm32-wasi --release

Run

wasmedge target/wasm32-wasi/release/sales_tax_rate_lookup.wasm

Test

Run the following from another terminal.

$ curl http://localhost:8001/find_rate -X POST -d "78701"
0.0825

If the zip code is not in the source CSV file, the microservice will return a default tax rate of 0.08.

$ curl http://localhost:8001/find_rate -X POST -d "12345"
0.08

About

Repository for liveProject: A First Business Microservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%