Example: a REST Service for returning manipulated data

Previous Next

In the previous example, you changed the name of a customer that already exists in the database and returned HTTP status code "200 OK" as the sole response.

In this example, you supply the result data as a response. For this purpose, you re-use the "MyPersonNameStructure" Structure from the previous example.

An input parameter is used here that is part of the request URL path. There are alternatives to this: see the help topic on designing input parameters.

collapseCreating the basic manipulation method
collapseGenerating code for returning the result data
collapseCombining the implementations for the UPDATE and SELECT step

 

 

See also

Generating a REST service from SQL

Example: a REST service for retrieving data (SELECT)

Example: a REST Service for adding new data (INSERT)

Example: a REST Service for manipulating data (UPDATE)

Example: a REST Service for deleting data (DELETE)