Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept processor functions by API call #4

Closed
danielalves opened this issue Dec 18, 2014 · 0 comments
Closed

Accept processor functions by API call #4

danielalves opened this issue Dec 18, 2014 · 0 comments

Comments

@danielalves
Copy link
Contributor

We could add another configuration key, by API call, with a function to process the request response:

var manifest = {
  host: 'http://my.api.com',
  resources: {
    Book: {
      all:  { 
        path: '/v1/books.json', 
        processor: function( data ){ // i.e: data contains 'results', 'pagination', ...
          return data.results;
        } 
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant