Define REST API
- Go to ##RESTAPI, key in the values as shown below for the Basic Settings. These settings define the name for API and package. In this sample, the generated jar file would be called CustomerService.jar.
- Next, we will need to define the worksheet name of Endpoint Groups included in this API which is the one we have set up earlier.
|Endpoint group Definition Sheets|
Specify the DB connection information in Data Source Configuration section which will be used for executing the REST API on the server. Also, the Data Source in the AlchemyJ Properties need to be set up to preview the function in AlchemyJ studio.
Now, all formulas and settings have been defined. We will preview the API in AlchemyJ Studio. Go to the AlchemyJ toolbar, click Run Function Point and select Create Customer to test the function point in AlchemyJ Studio.
The result can be found in C12 and DB. The model works as expected.