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

Use ActionController::API for API v1 controllers #10106

Merged

Conversation

damianlegawiec
Copy link
Member

API Controller is a lightweight version of ActionController::Base, created for applications that don't require all functionalities that a complete Rails controller provides, allowing you to create controllers with just the features that you need for API only applications.

At the time of API v1 creation ActionController::API wasn't around, hence Base was used. However, we shouldn't continue to do so nowadays.

```
API Controller is a lightweight version of ActionController::Base, created for applications that don't require all functionalities that a complete Rails controller provides, allowing you to create controllers with just the features that you need for API only applications.
```

At the time of API v1 creation ActionController::API wasn't around, hence Base was used. However we shouldn't continue to do so nowadays.
We don't use any of those methods in API controllers
@squash-labs
Copy link

squash-labs bot commented Apr 23, 2020

Manage this branch in Squash

Test this branch here: https://spark-solutionsfixapi-v1-inher-wmre6.squash.io

@damianlegawiec damianlegawiec merged commit 0688780 into spree:master Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant