Making Solidus leaner and more RESTFUL #4116
RyanofWoods
started this conversation in
New Features or Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There are some controllers/routes that are not RESTful. While maybe not all of them can/should be changed, I thought it could be good if we discuss and list which controller methods can be pushed to a new controller and if they would benefit by getting a RESTful name/route.
These changes could encourage cleaner code which will be benificial to the developers as well as the long-term maintainability of Solidus.
Here are the controllers that have none RESTful methods.
Italic indicates that the controller most likely cannot become fully RESTful
Note:
Not all controllers may benefit from becoming RESTful, for example, the
LocaleController
only has one method:set
, making this methodcreate
would be confusing.CheckoutControllers
is also arguably too distinct to fit theRESTful
principle.Planned Changes
OrdersController#populate
->OrderContentsController#create
(Move OrdersController#populate to new controller #4102)OrdersController#empty
-OrderContentsController#destroy
Beta Was this translation helpful? Give feedback.
All reactions