Skip to content
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

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

JBoshart
Copy link

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.

leahnp and others added 27 commits May 23, 2016 15:12
… we think we need to remove the colons on our post data
#Kept for testing purposes.
def index
render json: ["hello world"]
end
Copy link

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]
Copy link

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.

@lgranger
Copy link

lgranger commented Jun 7, 2016

Great job with your API! You made smart choices with your implementation and your organization was clean. 🎉💻🤓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants