4 Write your First Service
This topic provides information on Write your First Service.
Let us start with a Hello World Service. This section will help you in writing an end to end Hello World service. The following needs to be done:
- You will need the API Toolkit.
- Set the home of the toolkit by adding an environment variable for it.
- Once the above two steps are done and all the prerequisites are fulfilled, you will be able to proceed further with the execution of simple gradle tasks.
- Execution of the gradle tasks as mentioned below will get you the deployables (WARs) and the database scripts (The order in which the tasks are executed must be maintained as provided in the explanation).
- Deploy the WAR’s and run the database scripts.
- You can test your generated services.
The detailed steps for the first Hello World service is mentioned below:
- Obtain Toolkit
This topic describes the systematic instruction to Obtain Toolkit option. - Set Environment Variables
- Write JSON
This topic describes the systematic instruction to Write JSON option. - Generate JSON through Swagger file
This topic describes the systematic instruction to Generate JSON through Swagger file option. - Execute Gradle Tasks
This topic provides information on Execute Gradle Tasks.