Example: a REST Service for manipulating data (UPDATE)

Previous Next

In this example, you change the name of a customer that already exists in the database.

This example shows how you can quickly generate a REST service from a SQL statement.

In this particular example, an input parameter is used that is part of the request URL path, but you have a number of other options when designing input parameters.

 

 

collapseDefining SQL
collapseGenerating a REST method based on SQL
collapseOrganising input for the ID parameter
collapsePublishing the solution
collapseTesting the implementation

 

 

Another popular design of this type of REST call is to pass back the result data in a response message. For this design, go to help topic " Example: a REST Service for returning manipulated data ".

 

See Also

Generating REST Services from SQL

Example: a REST service for retrieving data (SELECT)

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

Example: a REST Service for returning manipulated data

Example: a REST Service for deleting data (DELETE)