diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb new file mode 100644 index 0000000..e82f18e --- /dev/null +++ b/app/controllers/welcome_controller.rb @@ -0,0 +1,7 @@ +class WelcomeController < ApplicationController + + def index + + end + +end diff --git a/app/views/index.html.erb b/app/views/index.html.erb new file mode 100644 index 0000000..aefff63 --- /dev/null +++ b/app/views/index.html.erb @@ -0,0 +1,27 @@ +Welcome to Acme API. + +The URI for posting a payment is '/api/v1/subscriptions' + +We've provided a sample POST request body for an idea on how to format your JSON POST Request + + +Sample POST Request body + +{ + "customer": { + "first_name": "Jim", + "last_name": "Jones", + "address": "2120 Wimbeldon Court", + "city": "Modesto", + "state": "CA", + "zip": 95355 + }, + "amount": "4900", + "card_number": "42424242424242420", + "cvv": "123", + "expiration_month": "01", + "expiration_year": "2024", + "zip_code": "11754", + "plan_id": 2 + +} diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 0000000..8f46d67 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + +
+