Generate and Run Your REST API
Validate the configurations by pressing the "Validate" button on the AlchemyJ ribbon.
You need to fix all the errors before generating the API or the API will not run properly. You can ignore the warnings if you know how they would affect the result. You can click the link on column B of the Validation sheet to go to the specific cell mentioned.
Click Generate API from the AlchemyJ ribbon. After AlchemyJ builds the project, it will run the REST API in the embedded web server. If the server does not start automatically, please check the option "Start server after API generation" on the "API Generation" tab of the Settings window.
As you can see, the server is started successfully.
Now, you can try to call your REST API from OpenAPI UI.
a. Click on the Launch OpenAPI button on AlchemyJ ribbon.
b. Expand the '/endpointGroup/resource1' section, click on the 'Try it out" button
c. Input the value in the 'input_parameter_1' input box.
d. Click on the "Execute" button and the function point will be called.
Please note that only REST APIs support the "Start server after API generation" option. The Source Type must be JAR file. To test a WAR package, you need to deploy the WAR file to an application server.
For Java API, you can test the API by using the AlchemyJ testing tool. For more details, please refer to Testing Tool.