-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leah & Jillian's shipping service project #1
base: master
Are you sure you want to change the base?
Conversation
… get secrets for fedex and ups apis now
… we think we need to remove the colons on our post data
…duplicate the error.
#Kept for testing purposes. | ||
def index | ||
render json: ["hello world"] | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was smart, to make up a route for testing! Just make sure that in a professional setting you take these out before you PR 🤓
origin_params = params["origin_info"] | ||
destination_params = params["destination_info"] | ||
weight = params["package_info"]["weight"].to_i | ||
dimensions = [params["package_info"]["height"].to_i, params["package_info"]["width"].to_i, params["package_info"]["length"].to_i] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider a private params method for getting these variables from your params.
Great job with your API! You made smart choices with your implementation and your organization was clean. 🎉💻🤓 |
https://trello.com/b/bfHHbI9m/shipping-betsy
https://betsyfour.herokuapp.com/
https://betsyshippingserviceapi.herokuapp.com/
Used UPS and USPS. Made some arbitrary choices about item weight and dimension so that we could focus on getting the API up and running.