Timeline for Rest api with same route of different entity type and using put and post method
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 17, 2017 at 6:17 | vote | accept | Melvin | ||
Feb 17, 2017 at 6:17 | comment | added | Melvin | Hi thanks for the info.Anyways I will appreciate your answer.Thanks | |
Feb 17, 2017 at 6:12 | comment | added | Prasanta Hatui | As per as my knowledge it is not provided by magento | |
Feb 17, 2017 at 6:10 | comment | added | Melvin | IS there no way that i can pass same base url and same parameters ? | |
Feb 17, 2017 at 5:40 | comment | added | Prasanta Hatui | You can use same base url but parameter should be different @Melvin | |
Feb 17, 2017 at 5:39 | history | edited | Prasanta Hatui | CC BY-SA 3.0 |
added 57 characters in body
|
Feb 16, 2017 at 17:07 | comment | added | Melvin | you are using different url for both call which is not my req | |
Feb 16, 2017 at 16:04 | comment | added | Prasanta Hatui | I have edited the answer. May this fulfill your requirement. | |
Feb 16, 2017 at 16:01 | history | edited | Prasanta Hatui | CC BY-SA 3.0 |
added 2272 characters in body
|
Feb 16, 2017 at 15:31 | comment | added | Melvin | for POST i am able to do this.When i call PUT by using only <route_entity> <route>/cart/addtocart/:device_id/:product_id/:qty</route> <action_type>entity</action_type> </route_entity> without <route_collection>...</route_collection> is also working .When I give both only POST is woking | |
Feb 16, 2017 at 15:24 | comment | added | Melvin | yes i have given that | |
Feb 16, 2017 at 13:47 | comment | added | Prasanta Hatui | in api2.xml , did you give privileges to user as : <update>1</update>? | |
Feb 16, 2017 at 13:45 | comment | added | Melvin | yes public function _update($data) { $response = 'check'; echo json_encode($response); die; } | |
Feb 16, 2017 at 13:44 | comment | added | Prasanta Hatui | did you write _update method in your model? | |
Feb 16, 2017 at 13:41 | comment | added | Melvin | Sorry .I did not get that ? | |
Feb 16, 2017 at 13:40 | comment | added | Prasanta Hatui | is _update method is your model? | |
Feb 16, 2017 at 13:38 | comment | added | Melvin | I have tried this , and for post it is working,When i give Put method it is showing the error | |
Feb 16, 2017 at 13:36 | history | answered | Prasanta Hatui | CC BY-SA 3.0 |