somebody has any tutorial from AngularJS in order to comunicate with API REST

1
0
-1

somebody has any tutorial from AngularJS in order to comunicate with API REST , because now i'm doing the same but with PHP CURL , and i found in order to start a process, i have to do it with java or Angular JS because with PHP CURL is very dificult or that is impossible to do it.
somebody has any idea?

Regards

1 answer

1
0
-1

Really? AngularJS over PHP Curl?

Anyway here are some Tutorials for you:

PHP CURL & REST

http://www.lornajane.net/posts/2008/using-curl-and-php-to-talk-to-a-rest-service
https://support.ladesk.com/061754-How-to-make-REST-calls-in-PHP
http://stackoverflow.com/questions/21185573/curl-with-rest-api-from-php
http://snipplr.com/view/44760/simple-php-rest-cient-using-curl/
http://rest.elkstein.org/2008/02/using-rest-in-php.html
http://php.net/manual/en/curl.examples-basic.php
http://www.copernica.com/en/support/rest/example-get-post-put-and-delete-requests
http://mythoughtsandexperiments.blogspot.com/2013/11/sending-php-curl-requests-to-rest-api.html

AngularJS

https://docs.angularjs.org/tutorial/step_11
https://spring.io/guides/gs/consuming-rest-angularjs/
http://fdietz.github.io/recipes-with-angular-js/consuming-external-services/consuming-restful-apis.html
http://onehungrymind.com/build-simple-rest-app-angularjs-part-1-node-api-strongloop/
http://www.sitepoint.com/creating-crud-app-minutes-angulars-resource/
http://hello-angularjs.appspot.com/angularjs-restful-apis-get-method-code-example

And an excellent AngularJS article in 5 parts:

https://www.twilio.com/blog/2012/09/building-a-real-time-sms-voting-app-part-1-node-js-couchdb.html
https://www.twilio.com/blog/2012/12/building-a-real-time-sms-voting-app-part-2-socket-io-and-highcharts-js.html
https://www.twilio.com/blog/2013/01/building-a-real-time-sms-voting-app-part-3-scaling-node-js-and-couchdb.html
https://www.twilio.com/blog/2013/08/votr-part-4-angularjs-and-authentication-with-couchdb.html
https://www.twilio.com/blog/2013/12/votr-part-5-angularjs-crud-restful-apis.html

regards

Comments

Submitted by claz08 on Wed, 08/19/2015 - 19:43

Hi Sean ,

No , what i want to do is learn Angulara js and ngBonita library , because previously i worked with PHP CURL and i wanted to create an button that it allow me to start a process ,but i could not do it, now i'm reviewing this code from this video:
http://es.bonitasoft.com/recursos/videos/bonita-bpm-con-angularjs-creaci...,

i have followed all the steps but i now when i want to try it in my browser , it doesn't work, the error is :
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

The code is order to authenticate in bonita with the user 'walter.bates' and password 'bpm'

Regards

Notifications