mgonto / restangular

AngularJS service to handle Rest API Restful Resources properly and easily
MIT License
7.87k stars 840 forks source link

customPATCH #1076

Closed ridiculous closed 8 years ago

ridiculous commented 9 years ago

Why is there no customPATCH method?

stevermeister commented 9 years ago

+1

bigjoevtrj commented 9 years ago

+1

daviesgeek commented 9 years ago

+1

igorissen commented 9 years ago

You can use this

customOperation(operation, path, [params, headers, elem])

This does a custom operation to the path that we specify. This method is actually used from all the others in this subsection. Operation can be one of: get, post, put, remove, head, options, patch, trace

daviesgeek commented 9 years ago

@igorissen yes you can, but there are aliases to all the other methods (customGET, customPOST, etc…), but not PATCH.

ridiculous commented 9 years ago

Yeah, that's what i learned from the author. I need to open a PR to add that

cagodoy commented 9 years ago

+1

cagodoy commented 9 years ago

@ridiculous any plans of making the PR soon?

ridiculous commented 9 years ago

@cagodoy Thanks for reminding me! https://github.com/mgonto/restangular/pull/1230 should work

cagodoy commented 9 years ago

good! :D @ridiculous

hyungouk commented 8 years ago

@ridiculous :+1: