I am trying to create a service that will accept a JSON String via a post, parse the JSON String into model(s) and then save them on the backend.
My problems -
- How do I define the service method to accept the JSON body? IS it just to define a string parameter and then do the parsing in the code?
- If I specify a class in the Model as the parameter, when I check the API in the console, it appears to be able to accept a JSON body. but I keep getting errors like {code=1009, message=Table not found by name ‘Table not found by name ‘services’. Make sure to check the name of the table in Backendless console and use the same capitalization in writing’, errorData={tableName=Table not found by name ‘services’. Make sure to check the name of the table in Backendless console and use the same capitalization in writing}}. Of course I do not have a table called sevices though there are relations named services that are in the JSONBody sent.
Which approach works?
Rgds