Welcome Guest, Not a member yet? Register   Sign In
Is Codeigniter 4 supports "Verb Based Routing"?
#1

GET         /api/order      Returns all orders
GET         /api/order/3   Returns details order #3
POST       /api/order     Create new order
PUT         /api/order/3   Update order #3
DELETE   /api/order/3   Delete order #3


The above is considered verb-based routing. The URLs above only contain the controller name and an optional id. So the Web API uses the HTTP verb of the request to determine the action method to execute in your ApiController subclass.
Reply


Messages In This Thread
Is Codeigniter 4 supports "Verb Based Routing"? - by atishamte - 02-20-2017, 10:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB