Since the SDKs contain all the modules we will need for our web service, we can go right to writing our executable: src/bin/reporting.rs.
We start by declaring our dependent external crates
extern crate actix_web;
We then declare the modules we will be using.
use actix_web::{web, App, HttpRequest, HttpServer, HttpResponse};
use actix_web::http::{StatusCode};
use actix_web::middleware::Logger;
We will be referencing a global variable, so we will include that next.
static ALL_PRODUCTS: &str = "all";
We can now add our supportive functions.
Just like we did when building the Provisioning Microservice, we will first build the wrapper for the service and confirm it works before including our business logic.