First, to log the db response for the sql execution:
#CALCSERVICE INSTALLATION UPDATE#
The procedure takes four input parameters (State, City, PostalCode, Locality) and update the locality for those matching state, city and postalcode.ġ. In the below example, i have configured an url for "api/v1/employee/"ĬREATE PROCEDURE updateLocality nvarchar(50), nvarchar(30), nvarchar(10), nvarchar(50)ĮXEC updateLocality = "Chennai", = "600053" = 'Ambattur' Click edit/pencil icon, which will display fields to configure redirect/mock details. Configure the option - i.e., Redirect/Mock (by default it is redirect).Ħ. Configure http method, default is * - to support all methods, you may also select any methodĥ. user/* - will handle all request for users/Ĥ. users/.* - will handle all request starting with users/ī. The url should start from context, and should be valid regex string. Configure the url for which tool needs to redirect or mock.
![calcservice installation calcservice installation](https://www.peoples-gas.com/street-work/images/My-Pipeline-Responsibility.jpg)
As initial set of ports are reserved for other purpose)ģ. Provide the local port, where tool should listen to any incoming http request. Provide a config name (config can be later loaded, so give some meaningful name)Ģ. It is executable jar - double click to open the tool.ġ. Download the api-mock-redirect-1.0.0.jar from github , and save it in a local folder. Based on the url mapping configuration (will see later in the section) it will decide whether the request has to routed to the external endpoint or mock response to be sent.Ģ. The tools starts a http server on configured local port, and will listen to any incoming request. This tools also provides view of all request/response processed.When we may want to mock the response rather than calling the actual service/host.
![calcservice installation calcservice installation](https://rfminc.net/wp-content/uploads/2016/12/status-light1130x200-2-1024x181.png)
It can be configured at http method as well For ex a url of app may be routed to a host, another url of same app can be routed to different host. When we may want to route urls to different hosts (say Dev, Test, Stage env).Http API - Mock Redirect is a light weight developer tool, I recently developed.