Change method variables to match flask variables. Added explicit types for URI variables.