Comments (13)
One working example is worth 10 pages of documentation!! :)
I know that. The problem is that I haven't found any Restful Resource API which is open to the public. Most of them need login or something and I didn't yet have time to create a full working example in Rails otherwise.
Do you know of any Nested Restful Resources to make this example?
Thanks!
from restangular.
Perhaps this be of use:
https://community.jivesoftware.com/docs/DOC-71539
https://developer.flightstats.com/api-docs/flightstatus/v2/flight#operation/0
Even if a version 0.01 just demonstrated a GET call would be a good start.
from restangular.
The first one needs User + Password and the second one appId + appKey.
Anyway, I'll try to find some API and I'll create a sample :). Thanks!
from restangular.
I'll see if I create a gh-pages for this, or otherwise, I'll use Plunkr as you suggest.
I'll check if I can create a user & account in this Flight status page.
Thanks!
from restangular.
Does anyone have a sample project/gist implementing Restangular. Since I am recently back on AngularJS, it would expedite my efforts to see a working sample. Thank You
from restangular.
The sample implemented gist would be the same as the code in the README.
https://github.com/mgonto/restangular#lets-code
That's working code.
Anyway, I found that FourSquare API accepts up to 5000 requests per hour so I think I'm gonna go with the example from there.
But, you can use the code from the README anyway
from restangular.
http://plnkr.co/edit/Sh669ScCQRyD513bzsBx
This is an example of Restangular with 4SQ API.
from restangular.
VERY helpful... Thank You :)
On Thu, May 9, 2013 at 12:47 PM, Martin Gontovnikas <
[email protected]> wrote:
http://plnkr.co/edit/Sh669ScCQRyD513bzsBx
This is an example of Restangular with 4SQ API.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-17682104
.
from restangular.
The response extractor is long because of this api. The important part is
the controller
On May 9, 2013 4:41 PM, "Larry Eitel" [email protected] wrote:
VERY helpful... Thank You :)
On Thu, May 9, 2013 at 12:47 PM, Martin Gontovnikas <
[email protected]> wrote:http://plnkr.co/edit/Sh669ScCQRyD513bzsBx
This is an example of Restangular with 4SQ API.
—
Reply to this email directly or view it on GitHub<
https://github.com/mgonto/restangular/issues/47#issuecomment-17682104>
.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-17685159
.
from restangular.
Could you possibly fork your plnkr to show how get the json response from here:
No authentication for this. :)
from restangular.
mgonto, I figured out how to GET that endpoint. Now I can move forward. Thank you!!
from restangular.
That's awesome.
Keep in mind that the id
field of your models is _id
so you should set that in RestangularFields
https://github.com/mgonto/restangular#how-to-configure-them
from restangular.
Hey,
new CRUD example based on Angular's one :).
This is more complete.
http://plnkr.co/edit/bs5Qu8D6mYXzJXR74b87?p=preview
Check it out!
from restangular.
Related Issues (20)
- Error when injecting restangular with angular 1.6.4 HOT 2
- Nested Services or Nested Configuration
- $remove() id as query parameter HOT 1
- new web app using restangular - www.connecttal.com -
- Element.plain() behaves differently compared to Retangular.stripRestangular
- How to make sync call?
- How to set array of object as parameters using customGET ?
- Did restangular support handling text/html or text/csv response?
- Response for getList SHOULD be an array and not an object or something else HOT 1
- make etag a strong etag when used in if-None-Match HOT 1
- Cancel request - Angular 1.5 HOT 1
- getList() response Json object loss some data
- How do I append query parameter with restangular.oneUrl()? HOT 1
- Details of HTTP request sent by put method ?
- Group by count
- addFullRequestInterceptor has empty headers object
- TypeError: Converting circular structure to JSON while <restangular-object>.put() HOT 1
- Multiple remove on Restangular
- Deprecated?
- Support DELETE method with body
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restangular.