8000 Merge pull request #1028 from sethkrasnianski/master · sumit-jaiswal/restangular@829a8e6 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 829a8e6

Browse files
Merge pull request mgonto#1028 from sethkrasnianski/master
PayPal SVG badge
2 parents 1913023 + 02d9fa5 commit 829a8e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Restangular
22

33
[![Build Status](https://travis-ci.org/mgonto/restangular.svg?branch=master)](https://travis-ci.org/mgonto/restangular)
4-
[![PayPayl donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=martin%40gon%2eto&lc=US&item_name=Martin%20Gontovnikas&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted "Donate once-off to this project using Paypal")
4+
[![PayPayl donate button](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=martin%40gon%2eto&lc=US&item_name=Martin%20Gontovnikas&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted "Donate once-off to this project using Paypal")
55
[![Donate on Gittip](http://img.shields.io/gittip/mgonto.svg)](https://www.gittip.com/mgonto/)
66
<a href="https://twitter.com/intent/tweet?hashtags=&original_referer=http%3A%2F%2Fgithub.com%2F&text=Check+out+Restangular%2C+a+service+for+%23AngularJS+that+makes+it+easy+to+use+Rest+APIs&tw_p=tweetbutton&url=https%3A%2F%2Fgithub.com%2Fmgonto%2Frestangular" target="_blank">
77
<img src="http://jpillora.com/github-twitter-button/img/tweet.png"></img>
@@ -1161,14 +1161,14 @@ With that, you'd get what you need :)
11611161

11621162
#### **How can I send files in my request using Restangular?**
11631163

1164-
This can be done using the customPOST / customPUT method. Look at the following example:
1164+
This can be done using the customPOST / customPUT method. Look at the following example:
11651165
````js
11661166
Restangular.all('users')
11671167
.withHttpConfig({transformRequest: angular.identity})
1168-
.customPOST(formData, undefined, undefined,
1168+
.customPOST(formData, undefined, undefined,
11691169
{ 'Content-Type': undefined });
11701170
````
1171-
This basically tells the request to use the *Content-Type: multipart/form-data* as the header. Also *formData* is the body of the request, be sure to add all the params here, including the File you want to send of course. There is an issue already closed but with a lot of information from other users and @mgonto as well: [GitHub - Restangular](https://github.com/mgonto/restangular/issues/420)
1171+
This basically tells the request to use the *Content-Type: multipart/form-data* as the header. Also *formData* is the body of the request, be sure to add all the params here, including the File you want to send of course. There is an issue already closed but with a lot of information from other users and @mgonto as well: [GitHub - Restangular](https://github.com/mgonto/restangular/issues/420)
11721172

11731173
#### **How do I handle CRUD operations in a List returned by Restangular?**
11741174

0 commit comments

Comments
 (0)
0