ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

Receiving Request Body, Request Params instead of $[i] When Mapping Service

I have a database with multiple items (4) in it, that I modeled from the Appery.io CRUD example. I have a List Component on my page that will hold the items in my database when the service is invoked. My only issue is that when I create my Success event map for service response - instead of seeing body - $ - $ as in the CRUD List Service example, I'm seeing body - $ - requestParams & requestBody for Service response (see attached). Why is this? Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Receiving Request Body, Request Params instead of $[i] When Mapping Service

Hello Steven,

Please clarify, have you created that service manually? It seems these response parameters were added on the service settings tab

ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

Receiving Request Body, Request Params instead of $[i] When Mapping Service

Yes I did create it manually. When you say they were added on the service settings tab what do you mean Sergiy?

ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

Receiving Request Body, Request Params instead of $[i] When Mapping Service

I deleted both requestParams and requestBody from that page and recreated the service but I'm still just getting a '$' not '$'. Why is this? The service responds with all items in the database when tested.

ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

Receiving Request Body, Request Params instead of $[i] When Mapping Service

Is there some kind of problem where if I have assigned a request parameter at some point in time it will no longer recognize an array?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Receiving Request Body, Request Params instead of $[i] When Mapping Service

Could you please provide us with more details, screenshots or exact steps to reproduce this problem?

ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

Receiving Request Body, Request Params instead of $[i] When Mapping Service

I guess to make it more clear, after having created a requestParams/Body manually, even if I delete the service, delete requestParams and requestBody, then add the service to the page again - I never get a $ only a $. Is this fixable?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Receiving Request Body, Request Params instead of $[i] When Mapping Service

Please add a response structure as an array of objects, see the attachment below:
Image

Return to “Issues”