Creating a new Linked Process
Follow these steps to create the new Linked Process for the GET /now operation:
When you saved the OpenAPI Specification for the Time API, it was added to the API list of the Development Agent Group.
The next step is to create a new Linked Process for the Time API's GET /now operation. The Linked Process is the actual implementation of the GET /now operation that Frends will run whenever an API client requests the operation.
Select Time API from the API list to expand it.
Click the "Create new Process" button. When you click the button, Frends creates a template Process with an automatically generated API Trigger and HTTP Response. Both the API Trigger and HTTP Response are generated based on the API definition of the operation.
Connect the API Trigger (/api/time/v1/now) to the return symbol (200 - OK).
Click on the return symbol (200 - OK) and set the HTTP content field to "The current date and time is: #{{ DateTime.Now.ToString() }}"
Finally, write a version description in the "Description" field. For example, you could write "Returns current date and time with default formatting." Then, save the Process by clicking the "Create new process and activate it" button below the Process Editor.
The next article is Introduction to Deploying your API