REST Controller - Enhance route selection based on available methods #111

Closed
opened 2017-12-07 11:24:54 +00:00 by jamie · 5 comments
jamie commented 2017-12-07 11:24:54 +00:00 (Migrated from git.hazaar.io)

When looking for a route we look for a route that matches. When we find one, we separately look at the allowed methods on that route and if the request method is not listed we throw an error.

What SHOULD happen is, when we find a route check the methods and if the current method is not listed, keep looking. This will allow us to have a single route that uses different methods based on the type of request.

When looking for a route we look for a route that matches. When we find one, we separately look at the allowed methods on that route and if the request method is not listed we throw an error. What SHOULD happen is, when we find a route check the methods and if the current method is not listed, keep looking. This will allow us to have a single route that uses different methods based on the type of request.
jamie commented 2017-12-07 11:24:56 +00:00 (Migrated from git.hazaar.io)
created branch [`111-rest-controller-enhance-route-selection-based-on-available-methods`](https://git.hazaarlabs.com/hazaar/hazaar-mvc/compare/master...111-rest-controller-enhance-route-selection-based-on-available-methods)
jamie commented 2017-12-07 11:24:57 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !28

mentioned in merge request !28
jamie commented 2017-12-07 11:55:45 +00:00 (Migrated from git.hazaar.io)

closed via commit 4d5bfc2a3e

closed via commit 4d5bfc2a3e505d2b9806b148182e7951240f71e7
jamie commented 2017-12-07 11:55:45 +00:00 (Migrated from git.hazaar.io)

closed via merge request !28

closed via merge request !28
jamie commented 2018-06-29 02:24:27 +00:00 (Migrated from git.hazaar.io)

changed milestone to %4

changed milestone to %4
jamie self-assigned this 2025-09-04 01:15:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/framework#111
No description provided.