Skip to content

Api#17

Open
eprothro wants to merge 38 commits into
masterfrom
api
Open

Api#17
eprothro wants to merge 38 commits into
masterfrom
api

Conversation

@eprothro
Copy link
Copy Markdown
Contributor

@eprothro eprothro commented Jun 5, 2014

No description provided.

Comment thread app/controllers/api/base_controller.rb Outdated
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pierce-h is there a reason to rescue Exception instead of StandardError here?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that should be standard error. I'll admit when it comes to catching errors and exceptions I am not 100% confident in my implementation. I have a rough idea of how I think it all should work.

Comment thread spec/requests/api/v1/lapses_spec.rb Outdated
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

teach me what host! is?

@eprothro
Copy link
Copy Markdown
Contributor Author

eprothro commented Jun 5, 2014

thoughts:

  1. centralizing expected status for action types
  2. likewise centralizing logic therof
  3. root resource node expectations?
  4. non-rescourceful non-critical error scenarios?

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.

2 participants