Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

Generic Service

I am trying to grasp this generic service idea now that you guys decided it would be the best route to map my data into the page, but it is a bit confusing and I have looked at some of the links provided for generic service.

  1. How do I pull the data called from the api into the generic service? Should I invoke the rest service and save the json feed into local storage, and if so how do I do that.

  2. When my rest service data is called into generic service how do I define my own parameters? Do you define the parameters of your json string in the J/S implementation, and if so how do those correlate to response parameters within the generic service.

  3. The response and request fields within the generic service, how are these tied into the service, do you have to write their values in the J/S implementation.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Generic Service

1) The actual implementation of the service is entirely up to you. You can get the data from anywhere, local storage, SQLite or a REST API.

2) and 3) This post shows an example how to create a generic service: https://getsatisfaction.com/apperyio/... (http://docs.appery.io/documentation/#...) and this reply explains how to define request parameters: https://getsatisfaction.com/apperyio/...

Return to “Issues”